Sitelet https://github.com/fb55/css-what/pull/387
Skip to content

Fix parsing case-sensitive attriute selectors - #387

Merged
fb55 merged 1 commit into
fb55:masterfrom
Semigradsky:377
Jan 9, 2021
Merged

fb55 merged 1 commit into
fb55:masterfrom
Semigradsky:377

Conversation

@Semigradsky

@Semigradsky Semigradsky commented Jan 8, 2021 •

Copy link
Copy Markdown
Contributor

Closes #378

I changed type for ignoreCase from boolean to boolean | undefined because [foo=x] and [foo=x s] selectors are not the same, because some attributes case-insensitive (https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors) by default or it depends on document mode. Also there are differences between #foo and [id=foo] selectors: in quirks mode ID selector is case-insensitive but attribute selector is case-sensitive.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 784b1f0 on Semigradsky:377 into 2839e92 on fb55:master.

@fb55
fb55 merged commit 7a41152 into fb55:master Jan 9, 2021
@fb55

fb55 commented Jan 9, 2021 •

Copy link
Copy Markdown
Owner

Thanks a lot @Semigradsky! This will have to land as a major version, which means it is probably best to bundle it with a fix for #379.

@Semigradsky
Semigradsky deleted the 377 branch January 9, 2021 10:15
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

Successfully merging this pull request may close these issues.

Failed to parse case-sensitive selector

3 participants