| <base href="http://www.example.com/failure/"> |
| <title>Submitting forms with no action attribute</title> |
| <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> |
| <form name="f" method="get"> |
| <input type="submit" value="Test"/> |
| testRunner.waitUntilDone(); |
| if (document.URL.indexOf('?') == -1) { |
| if (unescape(document.URL.substring(document.URL.indexOf('?')+1, document.URL.length)) == "") |
| document.write("<p>Success</p>"); |
| document.write("<p>Failure</p>"); |