Package Exports
- form-request-submit-polyfill
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (form-request-submit-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
<form>.requestSubmit() polyfill
form.requestSubmit([submitter])Requests to submit the form. Unlike
submit(), this method includes interactive constraint validation and firing asubmitevent, either of which can cancel submission.The submitter argument can be used to point to a specific submit button, whose
formaction,formenctype,formmethod,formnovalidate, andformtargetattributes 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 for details.
© 2019 Javan Makhmali