Implement TreeWalker

This commit is contained in:
Chris Paris 2014-08-20 13:46:21 -10:00
parent 5e5f77a354
commit 92638a6fe6
10 changed files with 603 additions and 71 deletions

View file

@ -45,6 +45,12 @@ interface Document : Node {
Event createEvent(DOMString interface_);
Range createRange();
// NodeFilter.SHOW_ALL = 0xFFFFFFFF
// [NewObject]
// NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
[NewObject]
TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
};
/* http://www.whatwg.org/specs/web-apps/current-work/#the-document-object */