Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / append-child-followed-by-document-write.html
blob41ce8265d029436ed8dc74c93b1b86f6cd6136c1
1 <script>
2 function go() {
3 document.open();
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();
21 </script>
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
25 empty.