-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Event-based form participation #4239
Conversation
- Add formdata event and FormDataEvent interface - Fire it in "constructing the entry list" algorithm - Introduce "constructing entry list" flag of a form element to avoid recursive submission. This fixes a part of WICG/webcomponents#187
…ated by "new FormData(form)" Specification: whatwg/html#4239 Bug: 825684 Bug: WICG/webcomponents#187 Change-Id: I4213d9a1b3b8081f421ab89529421d28cfc322f0 Reviewed-on: https://chromium-review.googlesource.com/c/1379599 Reviewed-by: Keishi Hattori <keishi@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#617067}
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.
This looks great! It's nice that the spec ended up being so simple.
I had some review nits, but since it took me 6 days to review anyway, I just pushed them as a separate commit, instead of doing a round trip.
I think you have some web platform tests for this ready to upstream, right? Can you link to them?
From what I recall everyone was excited about this at the web components F2F. Do folks want to give it a look to ensure the final spec meets their needs? @rniwa / @hober; @travisleithead; @annevk / @smaug---- ?
Specification PR: whatwg/html#4239
Here is the test PR: web-platform-tests/wpt#14637 |
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.
Thanks for writing this up, looks solid overall, but we do need to add an event constructor here I think.
Will update the WPT PR for |
Specification PR: whatwg/html#4239
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.
Great, thanks! @domenic want to look again? I'd prefer waiting with landing this until we can land wpt. I pinged the wpt IRC channel to see if anyone has insights into the failure.
As per https://github.com/whatwg/meta/blob/master/MAINTAINERS.md#handling-pull-requests we'll also need implementation bugs for this to ensure everyone knows this is going on.
Specification PR: whatwg/html#4239
This and whatwg/xhr#231 can be landed modulo implementation bugs. wpt is sorted. |
I now wonder if we should have done something here like make a copy of the data or some such, to make it clear at which point mutations to |
Yeah, with the current specification, a |
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637
This is a follow-up of whatwg#4239, and fixes an issue pointed out in web-platform-tests/wpt#14637
This is a follow-up of #4239, and fixes an issue pointed out in web-platform-tests/wpt#14637.
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 --HG-- extra : moz-landing-system : lando
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 --HG-- extra : moz-landing-system : lando
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 --HG-- extra : moz-landing-system : lando
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c71f7d3fa10b69185c90a1537bb49989a0fd4604
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c0fe813241a5041aec5fd25054a003016720745c
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c71f7d3fa10b69185c90a1537bb49989a0fd4604
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c0fe813241a5041aec5fd25054a003016720745c
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c71f7d3fa10b69185c90a1537bb49989a0fd4604
…t, a=testonly Automatic update from web-platform-tests html, xhr: Add tests for 'formdata' event (#14637) Specification PR: whatwg/html#4239 -- wpt-commits: c547389199647f1736be244a7ca5a874da692430 wpt-pr: 14637 UltraBlame original commit: c0fe813241a5041aec5fd25054a003016720745c
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: c8fbe42eba386afe9d98da72ebfbcb15b0995ed1
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 1ac7b20bb1d8c5528211fdba0246f7659bff3a7c
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 220138300dd887fb4d05e55a45b9bf9ac78e3584
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: c8fbe42eba386afe9d98da72ebfbcb15b0995ed1
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 1ac7b20bb1d8c5528211fdba0246f7659bff3a7c
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 220138300dd887fb4d05e55a45b9bf9ac78e3584
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: c8fbe42eba386afe9d98da72ebfbcb15b0995ed1
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 1ac7b20bb1d8c5528211fdba0246f7659bff3a7c
…ug,edgar For Event-based form participation specification PR: whatwg/html#4239 Differential Revision: https://phabricator.services.mozilla.com/D43986 UltraBlame original commit: 220138300dd887fb4d05e55a45b9bf9ac78e3584
recursive submission.
This fixes a part of WICG/webcomponents#187
XHR specification PR: whatwg/xhr#231
Test: web-platform-tests/wpt#14637
/form-control-infrastructure.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/infrastructure.html ( diff )
/webappapis.html ( diff )