3 Test passes if it does not crash.
6 testRunner
.dumpAsText();
8 var docElement
= document
.documentElement
;
10 iframe1
= document
.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
11 iframe1
.setAttribute("srcdoc", "ABC");
12 docElement
.appendChild(iframe1
);
13 document1
= document
.implementation
.createDocument("", null);
14 iframe1
.addEventListener("DOMFocusOut", function () { document1
.adoptNode(iframe1
); }, false);
16 setTimeout("finish();", 0);
20 document
.designMode
= "on";
21 range1
= document
.createRange();
22 range1
.selectNodeContents(iframe1
.contentDocument
);
23 window
.getSelection().addRange(range1
);
26 document
.addEventListener("DOMContentLoaded", crash
, false);