submit-form-with-target-twice.html 535 B

123456789101112131415
  1. <html>
  2. <script>
  3. function runTest() {
  4. var form = document.getElementById('f');
  5. form.submit();
  6. form.submit();
  7. }
  8. </script>
  9. <form id="f" target="foo"><input></form>
  10. <p>This tests that calling form.submit() twice in a row from JavaScript, on a form with a custom target and with at least one text field does not cause an assertion in a debug build of Safari.
  11. </p>
  12. <p>To test this, click the button below. A new window should open up and Safari should not assert.</p>
  13. <button onclick="runTest()">Click Here</button>
  14. </html>