Skip to content
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

Clarify case-insensitive parsing for enum values #1142

Open
christianliebel opened this issue Aug 26, 2024 · 1 comment
Open

Clarify case-insensitive parsing for enum values #1142

christianliebel opened this issue Aug 26, 2024 · 1 comment

Comments

@christianliebel
Copy link
Member

christianliebel commented Aug 26, 2024

The parsing algorithms of the current specification don't mention case-insensitive parsing of the enum-based members (dir, display, orientation), but some browser engines seem to have implemented this:

User Agent dir display orientation
Chromium not implemented yet 🤷🏼‍♂️ case-insensitive 🤷🏼‍♂️ case-insensitive
Gecko 🚨 case-sensitive 🤷🏼‍♂️ case-insensitive 🤷🏼‍♂️ case-insensitive
WebKit 🤷🏼‍♂️ case-insensitive 🤷🏼‍♂️ case-insensitive 🤷🏼‍♂️ case-insensitive
@marcoscaceres
Copy link
Member

marcoscaceres commented Aug 27, 2024

Bit of history... the original version of the spec did... then we did the IDL conversion (case-sensitive/exact match)... then we got rid of the IDL conversion... but then we forgot to revert back to normalizing the case.

At the same time, we were originally being a bit too liberal with the what we accepted. We shouldn't have done case normalization for enum values, but given that's what's implemented by everyone, we might as well updated the spec to match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@marcoscaceres @christianliebel and others