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

#297@minor: Add method Document.createNodeIterator. #852

Conversation

danielrentz
Copy link
Contributor

fix #297

  • Create class NodeIterator (uses TreeWalker internally to forward "nextNode" and "previosNode").
  • Add NodeIterator to global scope.
  • Add method Document.createNodeIterator.
  • Add plain function type to INodeFilter.
  • Add unit tests for method and class (dumb copy&paste from TreeWalker tests).

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.

Great contribution! 🌟

@capricorn86 capricorn86 merged commit 121fc96 into capricorn86:master Apr 12, 2023
1 check passed
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.

document.createNodeIterator is not a function
2 participants