6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
8 var docElement
= document
.documentElement
;
9 textArea
= document
.createElement("textarea");
10 textArea
.setAttribute("autofocus", "");
11 textArea
.appendChild(document
.head
);
12 textArea
.addEventListener("DOMFocusIn", function () { docElement
.innerHTML
= ""; }, false);
13 docElement
.appendChild(textArea
);
14 document
.implementation
.createDocument("http://www.w3.org/1999/xhtml", "html", null).adoptNode(textArea
);
15 window
.setTimeout(function() {
16 document
.body
.innerHTML
= "PASS unless crash.";
17 testRunner
.notifyDone();