2 <base href=
"http://www.example.com/failure/">
4 <title>Submitting forms with no action attribute
</title>
7 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=17042">bug
17042</a>: Forms without actions and a base tag submit incorrectly.
</p>
9 <form name=
"f" method=
"get">
10 <input type=
"submit" value=
"Test"/>
14 if (window
.testRunner
) {
15 testRunner
.dumpAsText();
16 testRunner
.waitUntilDone();
19 if (document
.URL
.indexOf('?') == -1) {
25 if (unescape(document
.URL
.substring(document
.URL
.indexOf('?')+1, document
.URL
.length
)) == "")
26 document
.write("<p>Success</p>");
28 document
.write("<p>Failure</p>");
30 if (window
.testRunner
)
31 testRunner
.notifyDone();