Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / collection-namedItem-via-item.html
blob4db906390dc4484bf4f7d6d0b2bdcd9b99a270d3
1 <head>
2 <script>
3 function log(test)
5 var result = eval(test);
6 document.getElementById("results").appendChild(document.createTextNode((result ? "PASS" : "FAIL") + ": " + test + "\n"));
8 function test()
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 log("document.all.item('1') == document.all.item(1)");
14 log("document.all.item('target') == document.getElementById('target')");
15 log("document.all.item('foo') == undefined");
17 </script>
18 </head>
19 <body onload="test()">
20 <p>
21 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11078">http://bugs.webkit.org/show_bug.cgi?id=11078</a>
22 Forms Don't Submit (ASP Pages)</i>.
23 </p>
24 <pre id="results"></pre>
25 <div id="target"></div>
26 <div id="1"></div>
27 </body>