Skip to content

Conversation

@SKYWy
Copy link

@SKYWy SKYWy commented Aug 6, 2024

This PR is a fix for #142.

As mentioned in the issue, the problem occurred when using ShadowRoot (document fragment) as the context node with absolute xpath.
Check 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