blob: f05e8bba5da7bda89d16720889aaaf8475ae4d7e [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function test() {
var div = document.getElementById("testdiv");
var img = document.createElement("img");
img.id = "testimg";
div.appendChild(img);
div.innerHTML = "";
if ("testimg" in document)
div.innerText = "FAIL: named item was not removed";
else
div.innerText = "PASS";
}
</script>
</head>
<body onload="test()">
<p>
Tests that the named item created for an image with an ID is correctly removed.
The test passes, if you see a "PASS" message in the div below.
</p>
<div id="testdiv"></div>
</body>
</html>