Allow playsinline attribute on video tag
Short description of your issue:
For users that have Javascript disabled, we have a <noscript> fallback to our video element that must play inline from a UX perspective.
However, the validator states:
The attribute 'playsinline' may not appear in tag 'video'.
How do we reproduce the issue?
In Chrome dev tools, click Toggle Device Toolbar to mobile Go to: https://gfycat.com/BareSecondaryFlamingo#development=1
/to @Gregable
@jridgewell Is this applicable to amp-video as well or only video?
We automatically add playsinline to <amp-video>, so I don't think we need to add that.
hey @jridgewell <amp-video> works well for us with playsinline default
The issue we have happens when JS is disabled; in that case, we have to fallback in a <noscript> section to the <video> tag. So we need the validator to not complain in the
Sounds good. It appears that this attribute is fairly new, which explains why it's missing. Happy to add it.
This is now live in prod.