4 var a
= document
.createElement("a");
5 document
.appendChild(a
);
6 document
.write("<b id='b'></b>");
7 var b
= document
.getElementById('b');
9 // Ideally we would use the dump-as-markup test framework for this test, but
10 // the contortions we go through here are too tricky for dump-as-markup.
11 // TODO(esprehn): Is this really true?
12 alert("document.documentElement.outerHTML: " + document
.documentElement
.outerHTML
+ "\n" +
13 "document.childNodes.length: " + document
.childNodes
.length
+ "\n" +
14 "b element: " + b
+ "\n");
17 window
.addEventListener("load", go
, false);
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
22 This test covers some tricky ground where we call appendChild between
23 document.open an document.write. This sequence of calls results in an unusual
24 situation where the parser is in the Initial state but the document is not