add node enumeration test

This commit is contained in:
Vincent Sanders 2012-11-13 23:21:16 +00:00
parent 082c76d9c3
commit 9acba6cbcc
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<html>
<head>
<title>Node interface enumeration</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Node interface enumeration</h1>
<script>
function output(x,y) {
document.body.appendChild(document.createTextNode(x));
document.body.appendChild(document.createTextNode(" = "));
document.body.appendChild(document.createTextNode(y));
document.body.appendChild(document.createElement('br'));
}
for(var key in Node){
output(key, Node[key]);
}
</script>
</body>
</html>