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" +
18 document
.getElementById("result").innerHTML
="SUCCESS";
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
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>