4 This tests that you can append children to a subtree that's being removed
5 from inside of an unload handler on a frame in that subtree.
8 <div><iframe src=
"about:blank"></iframe></div>
11 div
= document
.querySelector("div");
12 iframe
= document
.querySelector("iframe");
13 iframe
.contentWindow
.onunload = function() {
15 div
.appendChild(document
.createElement('span'));
16 document
.body
.appendChild(document
.createTextNode('PASS'));
18 document
.body
.appendChild(document
.createTextNode('FAIL: ' + e
));
22 div
.parentNode
.removeChild(div
);