-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <form>'s "firing submission events" flag #4621
Add <form>'s "firing submission events" flag #4621
Conversation
So reentrancy for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM editorially although I am also curious about @annevk's question. We may want to add a test for the invalid event causing reentrancy (e.g. bailing out after 5 recursions).
and probably informed the user of this) then | ||
<span data-x="concept-event-fire">fire an event</span> named | ||
<code data-x="event-invalid">invalid</code> at the <var>form</var> element and then return. | ||
</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this wrapping introduces an observable space after the period. I will fix.
Also removes comments that are no longer helpful because the structure is now obvious from the actual spec text.
Good point! I also found none of Chrome, Firefox and Safari dispatches |
Wow, OK. Can you take care of updating this PR and tests? I think it'll make more sense to just land everything together. This would include a -historical test that there is no invalid event fired at the form I guess we should name the boolean "firing submission events" or something since it's also about the invalid events. |
- Rename the flag; firing submit event -> firing submission events
Updated this PR. Will update the WPT PR. |
I guess that's fair. |
I filed #4626 on |
<var>form</var> and examine the result: if the result is negative (the constraint validation | ||
concluded that there were invalid fields and probably informed the user of this) then <span | ||
data-x="concept-event-fire">fire an event</span> named <code | ||
data-x="event-invalid">invalid</code> at the <var>form</var> element and then return.</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to reset the flag here too. I'll update the PR tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update it now so we can merge; I want to rebase #4597 on top.
Specification change: whatwg/html#4621
…entrancy protection, a=testonly Automatic update from web-platform-tests html: Add a testcase for submit event reentrancy protection (#16811) Specification change: whatwg/html#4621 -- wp5At-commits: 7ffd31b4eb23f0d99d5333ae2056b8c6896f463b wpt-pr: 16811
…entrancy protection, a=testonly Automatic update from web-platform-tests html: Add a testcase for submit event reentrancy protection (#16811) Specification change: whatwg/html#4621 -- wp5At-commits: 7ffd31b4eb23f0d99d5333ae2056b8c6896f463b wpt-pr: 16811
Specification change: whatwg/html#4621
…entrancy protection, a=testonly Automatic update from web-platform-tests html: Add a testcase for submit event reentrancy protection (#16811) Specification change: whatwg/html#4621 -- wp5At-commits: 7ffd31b4eb23f0d99d5333ae2056b8c6896f463b wpt-pr: 16811 UltraBlame original commit: b05ea3f35ab4136dd53da0fb0ec41d0819b8a0f7
…entrancy protection, a=testonly Automatic update from web-platform-tests html: Add a testcase for submit event reentrancy protection (#16811) Specification change: whatwg/html#4621 -- wp5At-commits: 7ffd31b4eb23f0d99d5333ae2056b8c6896f463b wpt-pr: 16811 UltraBlame original commit: b05ea3f35ab4136dd53da0fb0ec41d0819b8a0f7
…entrancy protection, a=testonly Automatic update from web-platform-tests html: Add a testcase for submit event reentrancy protection (#16811) Specification change: whatwg/html#4621 -- wp5At-commits: 7ffd31b4eb23f0d99d5333ae2056b8c6896f463b wpt-pr: 16811 UltraBlame original commit: b05ea3f35ab4136dd53da0fb0ec41d0819b8a0f7
This fixes #4620
(See WHATWG Working Mode: Changes for more details.)
/form-control-infrastructure.html ( diff )