Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/form-submit-in-submit-event.html

Issue 2340213002: submit() in submit event handler should not contains a value of a submit button. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLButtonElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698