Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / fast / dom / Document / doc-open-while-parsing.html
1 <p>Test for a possible problem related to <a href=\'http://bugzilla.opendarwin.org/show_bug.cgi?id=4395\'>bug 4395</a>: 
2 REGRESSION: document.open doesn't clear the document.</p>
3
4 <script>
5   if (window.layoutTestController)
6       layoutTestController.dumpAsText();
7
8   document.open();
9   document.write("<p>This line should appear second.</p>");
10   document.close();
11 </script>
12
13 <p>Last line.</p>