-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Align on HTML attribute/property casing (ie not camelCase) #31520
Comments
Thanks, it is "made up camelCase" then, because such properties don't exist in the DOM elements, and its just confusing. I think React 19 is a great opportunity to drop these and align more with how HTML actually is. |
propNames
Thanks for posting. Quick answer is that this is a major breaking change and would definitely not happen as part of React 19 (implied by the title of your post). It's something we will consider for a future major, but note that there is some subtlety around some properties, since attributes like |
Thanks @josephsavona that same thing has been said in 2017.. I think its time specially with the introduction of web-components support to make sure we align more with HTML. It shouldn't be that hard, and some stuff like
If you can consider it seriously, like in for real this time, the whole ecosystem will be welcome, because this doesn't only impact React, it also impacts people trying to learn what HTML is, and people trying to explore other approaches.... |
@gaearon can you make a case for a tiny last effort push to deal with this problem before React 19 becomes a thing? Thanks for your consideration |
I think every framework but React has had a significant number of people ask questions like "What you mean While I fully appreciate the truly massive scale you all work on here, and just how slow a big ship like this turns, if there was interest, I think the front-end ecosystem as a whole would appreciate seeing it start to move sooner rather than later. A fairly gentle rollout over 3 majors (say, 1. deprecate types, 2. remove types, 3. remove support, if even possible?) might be 4+ years away, and if you only begin to consider it once work begins on v20, well, we'll be stuck with this much longer. Just something to consider anyhow. I think it'd do a lot of good for the web ecosystem to use the standardized casing of DOM properties, even if we can all agree they are a bit lacking from time to time. |
This is the full list of keys to deprecate is really not that hard, at least mark them as deprecated 🗑 🛑 allowTransparency |
Summary
I am cross-posting an issue I made with Preact and Voby
preactjs/preact#4555
vobyjs/voby#45
The text was updated successfully, but these errors were encountered: