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

Child combinator selects only first child #36

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

Child combinator selects only first child #36

kzu opened this issue Jan 21, 2022 · 0 comments · Fixed by #37
Labels
bug Something isn't working

Comments

@kzu
Copy link
Member

kzu commented Jan 21, 2022

Example:

foo > bar turns into .//foo/child::*[1]/self::bar XPath, which would only select the first bar child element.

The conversion should be to .//foo/bar instead.

@kzu kzu added the bug Something isn't working label Jan 21, 2022
kzu added a commit that referenced this issue Jan 21, 2022
Existing implementation would only select the first child.

Fixes #36
@kzu kzu closed this as completed in #37 Jan 21, 2022
kzu added a commit that referenced this issue Jan 21, 2022
Existing implementation would only select the first child.

Fixes #36
@devlooped devlooped locked and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant