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

Selectors and case-sensitivity #3372

Open
fantasai opened this issue Jan 18, 2018 · 4 comments
Open

Selectors and case-sensitivity #3372

fantasai opened this issue Jan 18, 2018 · 4 comments

Comments

@fantasai
Copy link
Contributor

fantasai commented Jan 18, 2018

I'm going through the incoming references to Selectors and I had a question: why does HTML specify that CSS's syntax is lowercased, HTML's tag/attribute name is lowercased, and then a case-sensitive match is performed rather than simply saying that HTML's attribute/tag names are considered ASCII case-insensitive? (From my perspective it's really weird for the HTML spec to be manipulating CSS/Selectors syntax rather than merely classifying HTML things as case-sensitive or ASCII case-insensitive.)

@annevk
Copy link
Member

annevk commented Jan 18, 2018

HTML element names are case-sensitive. E.g., document.createElementNS("http://www.w3.org/1999/html", "VIDEO") is not an HTML video element and shouldn't be matched by a video type selector.

@annevk
Copy link
Member

annevk commented Jan 18, 2018

(I think this does mean that you cannot match such elements within an HTML document environment, but that was considered an acceptable loss.)

@zcorpan
Copy link
Member

zcorpan commented Jan 18, 2018

The underlying reason is #991 (comment)

@annevk
Copy link
Member

annevk commented Jan 22, 2018

#2738 is also related (and undecided still it seems).

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

No branches or pull requests

3 participants