compareDocumentPosition and export domClasses required for xpath2#113
Open
neu-rah wants to merge 2 commits into
Open
compareDocumentPosition and export domClasses required for xpath2#113neu-rah wants to merge 2 commits into
neu-rah wants to merge 2 commits into
Conversation
…-US/docs/Web/API/Node/compareDocumentPosition) exported domClasses for adaptation with dom agnostic xpath2 required to use with Ilinsky's xpath2 (https://github.com/ilinsky/xpath.js)
Author
|
hi, this was a set of changes that would allow usage of xpath2 (https://github.com/ilinsky/xpath.js) with this dom. Is this still of interest after all this time? |
karfau
pushed a commit
to xmldom/xmldom
that referenced
this pull request
May 16, 2023
The PR adds an implementation of level 3 method [`compareDocumentPosition`](https://dom.spec.whatwg.org/#dom-node-comparedocumentposition). This is an updated version of the code suggested in jindw/xmldom#113 The code ran for many years error-free in [Speech Rule Engine](https://github.com/speech-rule-engine/speech-rule-engine) together with [wicked-good-xpath](https://github.com/google/wicked-good-xpath).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
requirements for use xpath2 (xpath.js https://github.com/ilinsky/xpath.js) with example code