Boolean Video/Audio HTML Properties not being validated on Legacy CMS
ID: 491898
No Fix
Published on 3/16/2022
•
Last update on 2/16/2024
Summary
If you attempt to use Video/Audio optional Attributes in the CMS HTML input box that are boolean types that do not use the "=" expression, the CMS validation will incorrectly prompt a save error and stop the user from using this kind of HTML functionality. Some examples are the attributes autoplay, controls, loop, and muted.
Simulation
- Go to the legacy CMS application
- Create a new HTML template
- Insert a valid HTML tag that contains the autoplay attribute, for example:
<video controls loop>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
- An error will be prompted to the user.
Workaround
Use a javascript with the HTMLMediaElement.loop property instead, generating the same end effect.