-
Notifications
You must be signed in to change notification settings - Fork 48k
New issue
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
autoplay attribute on videos is wrongly camel-cased #16762
Comments
Here is the list of attribute names: The DOM Api method name for the video element is There seems be a convention of camel-casing the attribute names. A change might require a breaking change unless it is backward compatible, meaning supporting both I don't know whether the ship has sailed and this is the idiomatic approach to follow or whether it is a good idea to be flexible and also allow |
Hi @rmfarrell! |
I'd say accept both but deprecate the camel case way in a later version? camel case is for concatenating multi-word properties, but autoplay is one word. I was stuck for several minutes on this because there I would never have guessed that autoplay would be camel-cased just because it starts with "auto." |
JSX ignores the HTML
autoplay
attribute and warns it should beautoPlay
.Camelcase here is incorrect. I should only expect to use camelcase if the attribute were hyphenated in vanilla HTML. Autoplay is one word both as an html attribute and according to English.
The text was updated successfully, but these errors were encountered: