3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
9 if (document
.location
.href
.indexOf("n=v") == -1) {
10 document
.location
.search
= "?n=v";
13 document
.forms
.f
.action
="#firstaction";
14 document
.forms
.f
.submit();
15 document
.forms
.f
.action
="#secondaction";
18 function hashChanged() {
19 if (document
.location
.href
.indexOf("firstaction") != -1) {
20 document
.getElementById("console").innerHTML
="PASS";
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
28 <body onhashchange=
"hashChanged();" onload=
"runTest();">
29 <div><a href=
"https://bugs.webkit.org/show_bug.cgi?id=20342">https://bugs.webkit.org/show_bug.cgi?id=
20342</a></div>
30 <p>Test that when the form method is get, and the form action is the same as the current location url, but with different fragment, we do not reload the page, and the onload handler is not called again.
</p>
31 <p>Also test that changing the form action after the form was submitted has no effect.
</p>
33 <form name=
"f" method=
"GET" action=
"#action"><input name=
"n" value=
"v"></form>
34 <div id=
"console">FAIL
</div>