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

Add support for simplified syntax for nth-child #38

Closed
kzu opened this issue Jan 21, 2022 · 0 comments · Fixed by #39
Closed

Add support for simplified syntax for nth-child #38

kzu opened this issue Jan 21, 2022 · 0 comments · Fixed by #39

Comments

@kzu
Copy link
Member

kzu commented Jan 21, 2022

Even though nth-of-type is the most useful selector, nth-child should be supported too.

To limit scope, we should introduce support with the same simplified syntax as nth-of-type,
receiving just a single value that will be passed as-is to the XPath expression for counting the
preceding nodes only.

kzu added a commit that referenced this issue Jan 21, 2022
Only supports a single value, not the full `an+b` parameter syntax.

from https://www.w3.org/TR/selectors-3/#nth-child-pseudo.

Fixes #38
@kzu kzu closed this as completed in #39 Jan 21, 2022
kzu added a commit that referenced this issue Jan 21, 2022
Only supports a single value, not the full `an+b` parameter syntax.

from https://www.w3.org/TR/selectors-3/#nth-child-pseudo.

Fixes #38
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 a pull request may close this issue.

1 participant