1 <p>This test reports the value that document.all returns for various null-like arguments.
</p>
2 <p>Written for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=13106">http://bugs.webkit.org/show_bug.cgi?id=
13106</a>.
</p>
9 document
.getElementById("log").appendChild(document
.createTextNode(s
));
12 function getDescription(value
)
14 if (value
=== undefined)
18 if (typeof value
== "number")
20 if (typeof value
== "string")
21 return '"' + value
+ '"';
23 return "unkown description";
26 window
.onload
= function onload()
28 if ("testRunner" in this)
29 testRunner
.dumpAsText();
39 for (var i
= 0; i
< arguments
.length
; i
++) { //>
40 var value
= arguments
[i
];
41 var description
= getDescription(value
);
42 log("document.all[" + description
+ "]: " + document
.all
[value
] + "\n");
43 log("document.all(" + description
+ "): " + document
.all(value
) + "\n");
44 log("document.all.item(" + description
+ "): " + document
.all
.item(value
) + "\n");