Intent to Implement and Ship: form.requestSubmit()

113 views
Skip to first unread message

TAMURA, Kent

unread,
May 16, 2019, 9:49:24 PM5/16/19
to blink-dev
tk...@chromium.org N/A Specification: https://html.spec.whatwg.org/C/forms.html#dom-form-requestsubmit N/A; very small addition to an existing interface form.requestSubmit(submitter) is a function to request to submit the form. It includes interactive constraint validation, dispatches 'submit' event, adds an entry for the specified submitter button, in addition to what submit() does. https://github.com/whatwg/html/issues/4187 requestSubmit() exposes what click() implementation of built-in submit buttons do. It would be helpful to make developer's own submit buttons.
Low. It's a small new feature, and multiple browser vendors expressed support. Firefox: No public signals Edge: Public support (https://github.com/whatwg/html/issues/4187#issuecomment-443020609) Safari: Public support (https://github.com/whatwg/html/issues/4187#issuecomment-440810235) Web developers: Positive
Yes Yes http://w3c-test.org/html/semantics/forms/the-form-element/form-requestsubmit.html form-requestsubmit.html will be appeared in https://wpt.fyi/results/html/semantics/forms/the-form-element https://bugs.chromium.org/p/chromium/issues/detail?id=964062 https://chromestatus.com/features/6097749495775232

--
TAMURA Kent
Software Engineer, Google


Daniel Bratell

unread,
May 23, 2019, 9:24:59 AM5/23/19
to blink-dev, TAMURA, Kent
I guess Explainer + Motivation is the explainer here. Basically, it allows scripts to trigger the same submit process as a submit button does and that it's not been possible (except by simulating a click on a real submit button) has always been a weird oversight.

LGTM1

/Daniel
--
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/CAGH7WqFWb42C-Xui31yVY-n1RAp699tpNOM0xt0fQ6W9S5RYzQ%40mail.gmail.com.



--
/* Opera Software, Linköping, Sweden: CEST (UTC+2) */

Chris Harrelson

unread,
May 23, 2019, 3:29:57 PM5/23/19
to Daniel Bratell, blink-dev, TAMURA, Kent

Alex Russell

unread,
May 23, 2019, 3:30:42 PM5/23/19
to blink-dev, tk...@chromium.org
LGTM


On Thursday, May 23, 2019 at 6:24:59 AM UTC-7, Daniel Bratell wrote:
I guess Explainer + Motivation is the explainer here. Basically, it allows scripts to trigger the same submit process as a submit button does and that it's not been possible (except by simulating a click on a real submit button) has always been a weird oversight.

LGTM1

/Daniel

On Fri, 17 May 2019 03:49:05 +0200, TAMURA, Kent <tk...@chromium.org> wrote:

tk...@chromium.org N/A Specification: https://html.spec.whatwg.org/C/forms.html#dom-form-requestsubmit N/A; very small addition to an existing interface form.requestSubmit(submitter) is a function to request to submit the form. It includes interactive constraint validation, dispatches 'submit' event, adds an entry for the specified submitter button, in addition to what submit() does. https://github.com/whatwg/html/issues/4187 requestSubmit() exposes what click() implementation of built-in submit buttons do. It would be helpful to make developer's own submit buttons.
Low. It's a small new feature, and multiple browser vendors expressed support. Firefox: No public signals Edge: Public support (https://github.com/whatwg/html/issues/4187#issuecomment-443020609) Safari: Public support (https://github.com/whatwg/html/issues/4187#issuecomment-440810235) Web developers: Positive
Yes Yes http://w3c-test.org/html/semantics/forms/the-form-element/form-requestsubmit.html form-requestsubmit.html will be appeared in https://wpt.fyi/results/html/semantics/forms/the-form-element https://bugs.chromium.org/p/chromium/issues/detail?id=964062 https://chromestatus.com/features/6097749495775232

--
TAMURA Kent
Software Engineer, Google


--
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 blin...@chromium.org.

Daniel Bratell

unread,
May 24, 2019, 5:50:13 AM5/24/19
to blink-dev, Alex Russell, tk...@chromium.org
Just clarifying that Alex' unnumbered LGTM means that is 3 official LGTM so go ahead.

I personally (who worked on WebForms2, one of the HTML5 predecessors, with Hixie in ~2004) love to see this gap in the spec filled.

/Daniel
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/fb2f2bba-8a84-4efa-95f7-7ee997157339%40chromium.org.

Alex Russell

unread,
Jun 21, 2019, 8:47:21 PM6/21/19
to Daniel Bratell, blink-dev, TAMURA, Kent
Thanks for clarifying, Daniel! Apologies, and will work to resume regular service in future.
Reply all
Reply to author
Forward
0 new messages