5 testRunner.dumpAsText();
8 var div = document.getElementById("testdiv");
9 var img = document.createElement("img");
13 if ("testimg" in document)
14 div.innerText = "FAIL: named item was not removed";
16 div.innerText = "PASS";
20 <body onload="test()">
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.
25 <div id="testdiv"></div>