JamesMGreene / jWalker

A well-tested cross-browser JavaScript implementation of the TreeWalker class defined in the W3C specification for DOM Traversal (DOM Level 2).
http://jamesmgreene.github.com/jWalker/
MIT License
2 stars 1 forks source link

Add support for attribute nodes #3

Open JamesMGreene opened 12 years ago

JamesMGreene commented 12 years ago

Supporting attribute nodes requires specialized code as they are not part of a natural node traversal. We will have to inspect the whatToShow parameter of the TreeWalker and adjust the traversal algorithms as needed.