-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Validator: Allowing Forms and Inputs #3348
Copy link
Copy link
Closed
Description
AMP will start supporting forms - see #3343, filing this to get discussion going and to start on the validator part in parallel.
- Allow usage of
form,input,textarea,select,optiontags in AMP Docs. - Must include amp-form extension script if document uses form/input/select/textarea tags.
- Must use inputs tags inside form tag.
- Form must have at least one
<input type=submit> - Form must have action=”absolute non-cdn https url”
- Form must have target=”_top|_blank”
<input type=”file|password|image|button”>are invalid- This might be revised later on.
- Other than normal form attributes, allowed attributes include:
action-xhr- Optional - to enable a submission flow through XHR. Also has same validation asactionattr (absolute, non-cdn link and https) except not required.
Reactions are currently unavailable