Add <form>'s "firing submission events" flag#4621
Conversation
|
So reentrancy for the |
source
Outdated
| 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.
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 |
source
Outdated
| <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.
Need to reset the flag here too. I'll update the PR tomorrow.
There was a problem hiding this comment.
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
…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
This fixes #4620
(See WHATWG Working Mode: Changes for more details.)
/form-control-infrastructure.html ( diff )