Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / fast / dom / Document / document-reopen.html
1 <html>
2 <head>
3 <title>document.open</title>
4 </head>
5 <body onLoad="mainFunc();">
6 <script>
7 function mainFunc() {
8
9     if (window.layoutTestController)
10         layoutTestController.dumpAsText();
11
12         document.open();
13         document.write("will not be visible<br>");
14         document.close();
15
16         for (i = 0; i < 5; i++) {
17
18                 document.open();
19                 document.write("There should be only one line of text here. <a href=\'http://bugzilla.opendarwin.org/show_bug.cgi?id=4395\'>Bug 4395</a><br>");
20         }
21 }
22 </script>
23 </body>
24 </html>