form.requestSubmit()

Adds the form.requestSubmit() function, which requests form submission. It includes interactive constraint validation, dispatches a 'submit' event, and takes a reference to the submitter button.

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. form.submit() was not enough because it doesn't trigger interactive constraint validation, doesn't dispatch 'submit' event, and doesn't make a form data entry for the submit button.

Documentation

Specification

Working draft or equivalent

Status in Chromium

Blink>Forms


Enabled by default (tracking bug) in:

  • Chrome for desktop release 76
  • Chrome for Android release 76
  • Android WebView release 76

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Last updated on 2019-06-04