Skip to content

BUGFIX for null-byte at nth-child selectors #374

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

Merged

Conversation

RichardCox09
Copy link

@RichardCox09 RichardCox09 commented Aug 11, 2022

Consider the following example:

.foo:nth-child(2){
    margin-top: 2px;
}

The validator parses a null-byte before the number (2), because no operand is specified. This caused that the browsers couldn't understand the style.

@ylafon ylafon merged commit 3572a2d into w3c:main Aug 23, 2022
@ylafon
Copy link
Member

ylafon commented Aug 23, 2022

Please note that the output is not meant to be a preprocessor, that said, thanks for this, the \0 was indeed plain wrong.

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.

2 participants