ampproject / ampproject/amphtml
amp-form: pass through non-XHR POST requests
Open
Component: amp-form
P2: Soon
Type: Feature Request
WG: components
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
`amp-form` throws an error if a form without `action-xhr` attribute is submitted:
https://github.com/ampproject/amphtml/blob/b6313e372fdd1298928e2417dcc616b03288e051/extensions/amp-form/0.1/amp-form.js#L1062-L1070
There might be a situation where a regular (non-XHR) form is rendered on an AMP page – this form will be unsubmittable.
Would it be possible to allow default form submission for non-XHR forms?
Contributor guide
Assessment
This issue has not been assessed yet.