Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / document-write.html
blobe771379f63008c0b6297442c0c9162f737c19a77
1 <html>
2 <head>
3 <script>
4 function test() {
5 if (document.URL.indexOf('?') == -1) {
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 document.write("<html><body>" +
13 "<form name='f' action='?' method='post'>" +
14 "<input type=submit></form><scri" +
15 "pt>document.f.submit();</scri" +
16 "pt></body></html>");
17 } else {
18 document.getElementById("result").innerHTML="SUCCESS";
19 if (window.testRunner)
20 testRunner.notifyDone();
24 </script>
25 </head>
26 <body onload="test()">
27 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=4372">bug 4372</a>:
28 JavaScript document.write page form does not submit in Safari if document.close is not called.</p>
29 <p id=result>FAILURE</p>
30 </body>
31 </html>