Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Case-sensitivity of ID selectors #79

Open
Ms2ger opened this issue Apr 7, 2016 · 1 comment
Open

Case-sensitivity of ID selectors #79

Ms2ger opened this issue Apr 7, 2016 · 1 comment

Comments

@Ms2ger
Copy link

Ms2ger commented Apr 7, 2016

https://drafts.csswg.org/selectors-4/#id-selectors

When matching against a document which is in quirks mode, IDs must be matched ASCII case-insensitively; ID selectors are otherwise case-sensitive.

@SimonSapin
Copy link
Member

Does a document’s mode (quirks vs not) ever change?

Relevant code in matching.rs is not only matches_simple_selector but also the SelectorMap::id_hash map.

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

No branches or pull requests

2 participants