| <p>This test reports the value that document.all returns for various null-like arguments.</p> |
| <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> |
| document.getElementById("log").appendChild(document.createTextNode(s)); |
| function getDescription(value) |
| if (typeof value == "number") |
| if (typeof value == "string") |
| return '"' + value + '"'; |
| return "unkown description"; |
| window.onload = function onload() |
| if ("testRunner" in this) |
| for (var i = 0; i < arguments.length; i++) { //> |
| var value = arguments[i]; |
| var description = getDescription(value); |
| log("document.all[" + description + "]: " + document.all[value] + "\n"); |
| log("document.all(" + description + "): " + document.all(value) + "\n"); |
| log("document.all.item(" + description + "): " + document.all.item(value) + "\n"); |