Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javan/form-request-submit-polyfill
https://github.com/javan/form-request-submit-polyfill
form html javascript polyfill
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/javan/form-request-submit-polyfill
- Owner: javan
- License: mit
- Created: 2019-09-11T20:44:09.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-16T08:50:11.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T17:43:37.744Z (30 days ago)
- Topics: form, html, javascript, polyfill
- Language: JavaScript
- Homepage: https://npm.im/form-request-submit-polyfill
- Size: 2.93 KB
- Stars: 64
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# <form>.requestSubmit() polyfill
> **[`form.requestSubmit([submitter])`](https://html.spec.whatwg.org/multipage/forms.html#dom-form-requestsubmit-dev)**
>
> Requests to submit the form. Unlike [`submit()`](https://html.spec.whatwg.org/multipage/forms.html#dom-form-submit), this method includes interactive constraint validation and firing a `submit` event, either of which can cancel submission.
>
> The *submitter* argument can be used to point to a specific submit button, whose `formaction`, `formenctype`, `formmethod`, `formnovalidate`, and `formtarget` attributes can impact submission. Additionally, the submitter will be included when constructing the entry list for submission; normally, buttons are excluded.## References
- https://github.com/whatwg/html/issues/4187
- https://github.com/whatwg/html/pull/4597
- https://www.chromestatus.com/feature/6097749495775232---
Distributed under the MIT license. See [LICENSE](LICENSE) for details.
© 2019 Javan Makhmali