OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 |
| 6 <iframe name="target"></iframe> |
| 7 <form action="about:blank" onsubmit="this.submit(); return false;" target="targe
t"> |
| 8 <input name="t" value="text"> |
| 9 <input type="submit" name="b" value="Next"> |
| 10 </form> |
| 11 |
| 12 <script> |
| 13 var test = async_test('submit() in submit event handler should not contains a va
lue of a submit button.'); |
| 14 test.step(() => { |
| 15 var iframe = document.querySelector('iframe'); |
| 16 iframe.addEventListener('load', test.step_func(() => { |
| 17 assert_true(iframe.contentWindow.location.href.endsWith('?t=text')); |
| 18 test.done(); |
| 19 }), false); |
| 20 document.querySelector('input[type=submit]').click(); |
| 21 }); |
| 22 </script> |
OLD | NEW |