summaryrefslogtreecommitdiff
path: root/test/js/dom-node-enumerate.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/dom-node-enumerate.html')
-rw-r--r--test/js/dom-node-enumerate.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-node-enumerate.html
index 261d68020..573e27b4e 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-node-enumerate.html
@@ -9,19 +9,17 @@
<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>
</html>