Skip to content

Fix pseudo-class ":not" selector parsing halting point #442

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
merged 1 commit into from
Dec 19, 2022

Conversation

philss
Copy link
Owner

@philss philss commented Dec 19, 2022

This is a fix for when a "pseudo-class" ":not" that contains an attribute selector is followed by another selector. This is an example: "a:not([class]), div".

The solution was to avoid using the general parsing state for the attribute, and instead use the "consume attribute" state, which is more predictable.

Closes #441

Verified

This commit was signed with the committer’s verified signature.
philss Philip Sampaio
This is a fix for when a "pseudo-class" ":not" that contains an
attribute selector is followed by another selector.
This is an example: "a:not([class]), div".

The solution was to avoid using the general parsing state for the
attribute, and instead use the "consume attribute" state, which
is more predictable.

Closes #441
@philss philss merged commit f22bf9d into main Dec 19, 2022
@philss philss deleted the ps-fix-pseudo-not-with-comma-after branch December 19, 2022 15:56
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.

:not pseudo-class attribute selector breaks Floki.find/2 with comma-separated selectors
1 participant