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 document fragment support as contextNode #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SKYWy
Copy link

@SKYWy SKYWy commented Aug 6, 2024

This PR is a fix for #142.

As mentioned in the issue, problem occurred when using ShadowRoot (document fragment) as the context node with absolute xpath.
Check in in PathExpr.applyLocationPath prevent it to fetch the ownerDocument as, in the case of ShadowRoot, it doesn't have acces to the nodes in the document-fragment.

Further in the code, document-fragment were forgotten as node MDN defines document-fragment as nodes.

DocumentFragments are DOM Node objects

@SKYWy SKYWy mentioned this pull request Aug 6, 2024
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.

1 participant