2 <div id=
"sample">foo
</div>
6 testRunner
.dumpAsText();
8 function $(id
) { return document
.getElementById(id
); }
11 document
.addEventListener("DOMNodeRemovedFromDocument", function () {
15 var beingRemoved
= event
.srcElement
;
16 beingRemoved
.parentNode
.removeChild(beingRemoved
);
19 var range
= document
.createRange();
20 range
.selectNode($('sample'));
23 $('sample').parentNode
.removeChild($('sample'));
25 // We get 'NotFoundError'.
28 $('container').outerHTML
= 'PASS; NOT CRASHED';