-
Notifications
You must be signed in to change notification settings - Fork 22.9k
HTML enumerated attributes are case-insensitive #40377
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
Conversation
Preview URLs Flaws (2)Note! 1 document with no flaws that don't need to be listed. 🎉 URL:
External URLs (2)URL:
URL:
(comment last updated: 2025-07-17 08:22:31) |
Shall we mention that their IDL-reflected properties always return the lowercase variant, given that was what the original comment was interested in? |
Added but talked about "canonical values per specification" as I didn't find spec text that says that enumerated values will always return lowercased via IDL reflection. Did you see that? |
I think that's just by convention. You are right that technically it can be specified to be something else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, nit proposal for you in https://github.com/mdn/content/pull/40377/files/44a41ea34232a02bb6cc8b95a45f095f312fff5f..53e3f6addc3feff788dc3f33062e7f566fd0f890#r2211660420 but otherwise good.
Co-authored-by: Hamish Willee <[email protected]>
Description
In HTML everything is case-insensitive including enumerated attributes and their values.
Motivation
Estelle motivates me.
Additional details
See step 2. in https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
Related issues and pull requests
#40260 (comment)