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

:nth-child(expr) is parsed as CSSSelectorSimpleMember #89

Open
Lesny opened this issue Nov 2, 2022 · 1 comment
Open

:nth-child(expr) is parsed as CSSSelectorSimpleMember #89

Lesny opened this issue Nov 2, 2022 · 1 comment
Assignees

Comments

@Lesny
Copy link

Lesny commented Nov 2, 2022

Selectors such as:

  • :nth-child(2)
  • :nth-child(2n+7)
  • :nth-child(odd)

Are all parsed to CSSSelectorSimpleMember with value :nth-child(odd)
instead of CSSSelectorMemberFunctionLike with functionName :nth-child( and
parameterExpression odd / 2/2n+7 etc.

I am not sure if these are supposed to be part of public API, if not, then it may not be a bug. I am writing CSS interpreter, and in this context it is problematic.

@phax phax self-assigned this Nov 2, 2022
@phax phax added the question label Nov 2, 2022
Copy link

stale bot commented Jan 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 7, 2024
@phax phax added pinned and removed wontfix labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants