<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<table>
<form onsubmit="document.write('PASS'); return false">
</table>
<input type=submit>
<script>
document.getElementsByTagName('input')[0].click();
</script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<table>
<form onsubmit="document.write('PASS'); return false">
</table>
<input type=submit>
<script>
document.getElementsByTagName('input')[0].click();
</script>