more enumeration tests and update test index

This commit is contained in:
Vincent Sanders 2012-11-16 21:52:27 +00:00
parent e36b8f6579
commit 82cae10284
3 changed files with 37 additions and 7 deletions

View File

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

View File

@ -9,18 +9,16 @@
<script>
function output(x,y) {
document.body.appendChild(document.createTextNode(x));
document.body.appendChild(document.createTextNode(" = "));
document.body.appendChild(document.createTextNode("("));
if (y != undefined) {
document.body.appendChild(document.createTextNode(y.length));
}
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]);
}
document.body.appendChild(document.createElement('hr'));
for(var key in document.body){
output(key, document.body[key]);
}
</script>
</body>

View File

@ -28,6 +28,11 @@
<li><a href="doc-dom2.html">getElementById</a></li>
<li><a href="dom-getElementsByTagName.html">getElementsByTagName</a></li>
</ul>
<h3>Enumeration tests</h3>
<ul>
<li><a href="dom-node-enumerate.html">Node element interface</a></li>
<li><a href="dom-body-enumerate.html">Body element interface</a></li>
</ul>
<h3>Document element specific</h3>
<ul>