Skip to content
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

Errors in parsing with relational pseudo-class: Combinator X used in selector start #11

Closed
Semigradsky opened this issue Oct 3, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Semigradsky
Copy link

https://www.w3.org/TR/selectors-4/#has-pseudo

a:has(> img)

Error: Combinator > used in selector start


dt:has(+ dt)

Error: Combinator + used in selector start

@LeaVerou
Copy link
Owner

LeaVerou commented Oct 5, 2020

Since Parsel is meant to be permissive, I just removed the error and now it just returns null in the left or right properties if a combinator is in the beginning or end.

@LeaVerou LeaVerou added the bug Something isn't working label Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants