Allow passing a submit button to the FormData constructor. If the button has a name or is an image button, it will contribute to the form data set. This makes it possible to create a FormData object with the same data set as a vanilla form submission triggered by the button.
N/A
If developers need to support this feature in older browsers, they can polyfill it fairly easily (e.g. https://github.com/jenseng/formdata-submitter-polyfill), or they can employ simpler (though less robust) workarounds like so: const formData = new FormData(form, submitter); if (!formData.has(submitter.name)) formData.append(submitter.name, submitter.value);
N/A, leveraging existing form entry list construction and constraints.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
No
N/A, simple WebIDL change that works as expected.
FormData is a core feature of all platforms
Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
NoNo milestones specified
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/95274072-fc12-440f-959f-d58203a3e93fn%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/71ebbcba-da8e-e89f-b7d9-8b40623ec8fa%40chromium.org.
Thanks Mike and Alex! What's the best way to send an FYI to TAG? Post something to https://lists.w3.org/Archives/Public/www-tag/, or is there a more formal mechanism?Jon