Skip to content

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

Merged
ylafon merged 1 commit intow3c:mainfrom
Handig-Eekhoorn:PR-ignore_null-byte_for_nth-child_selectors
Aug 23, 2022
Merged

BUGFIX for null-byte at nth-child selectors#374
ylafon merged 1 commit intow3c:mainfrom
Handig-Eekhoorn:PR-ignore_null-byte_for_nth-child_selectors

Conversation

@RichardCox09
Copy link
Copy Markdown

@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
Copy Markdown
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