We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
video
media.html()
{% if media.meta().type == 'video' %} {{ media.html() }} {% endif %}
Current (after 1.7.31):
1.7.31
<video controls="controls" alt=""><source src="test.mp4">Your browser does not support the video tag.</video>
Used: https://validator.w3.org/nu/
1
controls
alt
Specification video: https://html.spec.whatwg.org/multipage/media.html#the-video-element
controls="1"
controls="controls"
title
aria-label
aria-describedby
The text was updated successfully, but these errors were encountered:
I didn't find where alt gets generated, but I fixed all the other params.
Sorry, something went wrong.
Fixed non-standard video html atributes generated by `{{ media.html()…
a7e82f2
… }}` [#3540]
No branches or pull requests
Grav twig template
Output
Current (after
1.7.31
):Validator
Used: https://validator.w3.org/nu/
Errors
Error: Bad value1
for attributecontrols
on element video.alt
not allowed on element video at this point.Reference
Specification
video
: https://html.spec.whatwg.org/multipage/media.html#the-video-elementPossible solutions
controls="1"
replace bycontrols="controls"
orcontrols
alt
replace bytitle
oraria-label
oraria-describedby
History
1.7.31
The text was updated successfully, but these errors were encountered: