blob: 1a94bc8f39b3c8cdedb643ac2ea28b4d26df9056 [file] [log] [blame]
<p>This test checks whether event.stopPropagation() prevents the
default action. It should not! If the default was prevented, you'll
see a link below and the text FAIL. On success you will see PASS (and
?x=0&y=0).
</p>
<form action="data:text/html,<script>if (window.layoutTestController) layoutTestController.notifyDone();</script>PASS<br>">
<input type="image" id="image1" onclick="event.stopPropagation()" value="click here">
</form>
<p>
FAIL
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var submit = document.getElementById("image1");
submit.click();
</script>