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

fix: [1720] Fix bug where nested query selector is not returning the correct result when there are multiple matching selectorGroups #1721

Conversation

christiango
Copy link
Contributor

Found and fixed a minor bug where we still aren't quite returning the same result in querySelect() and querySelectAll()[0] when there are grouped selectors. The fix was to pass through the updated document position to recursive calls, which was missed during #1713.

Fixes #1720

…correct result when there are multiple matching selectorGroups
Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, we missed that one 😅

@capricorn86 capricorn86 merged commit 70eb289 into capricorn86:master Feb 10, 2025
4 checks passed
@christiango christiango deleted the christiango/fix-query-selector-nested-bug branch February 10, 2025 16:50
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.

queryResult is not returning the correct results when there are nested tags
2 participants