Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Boolean Video/Audio HTML Properties not being validated on Legacy CMS
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

  1. Go to the legacy CMS application
  2. Create a new HTML template
  3. 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>

  1. An error will be prompted to the user.

Workaround

Use a javascript with the HTMLMediaElement.loop property instead, generating the same end effect.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback