Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / named-item.html
blobf05e8bba5da7bda89d16720889aaaf8475ae4d7e
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function test() {
8 var div = document.getElementById("testdiv");
9 var img = document.createElement("img");
10 img.id = "testimg";
11 div.appendChild(img);
12 div.innerHTML = "";
13 if ("testimg" in document)
14 div.innerText = "FAIL: named item was not removed";
15 else
16 div.innerText = "PASS";
18 </script>
19 </head>
20 <body onload="test()">
21 <p>
22 Tests that the named item created for an image with an ID is correctly removed.
23 The test passes, if you see a "PASS" message in the div below.
24 </p>
25 <div id="testdiv"></div>
26 </body>
27 </html>