amp-form throws an error if a form without action-xhr attribute is submitted:
|
handleNonXhrPost_() { |
|
// non-XHR POST requests are not supported. |
|
userAssert( |
|
false, |
|
'Only XHR based (via action-xhr attribute) submissions are supported ' + |
|
'for POST requests. %s', |
|
this.form_ |
|
); |
|
} |
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?
amp-formthrows an error if a form withoutaction-xhrattribute is submitted:amphtml/extensions/amp-form/0.1/amp-form.js
Lines 1062 to 1070 in b6313e3
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?