1 <p>This test verifies that removing an iframe from the DOM removes the
2 corresponding frame from the page, even if the iframe's id has changed and the
3 iframe is loading a document.
</p>
4 <pre id=
"console"></pre>
5 <iframe id=
"iframe"></iframe>
10 document
.getElementById("console").appendChild(document
.createTextNode(s
));
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
16 var iframe
= document
.getElementById("iframe");
17 iframe
.setAttribute("id", "iframe2", 0);
18 iframe
.setAttribute("src", "data:text/html,", 0);
19 iframe
.parentNode
.removeChild(iframe
);
22 log("FAIL: iframe remained in the page.\n");
24 log("PASS: iframe removed from the page.\n");