W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

TreeWalker, NodeIterator

From: Keith W. Boone <kboone@ebt.com>
Date: Tue, 6 Jun 2000 15:02:17 -0400
To: "DOM (E-mail)" <www-dom@w3.org>
Message-ID: <003201bfcfe9$bca85020$767770c6@ebt.com>
1.  TreeWalker.getParentNode() returns an ancestor, not necessarily the
parent.  Should it not be renamed getAncestorNode() to reflect the
2.  TreeWalker.getFirstChild()/getLastChild() apparently don't drill down,
but only return "direct" offspring.  Can you confirm this/clarify the

The implementation of TreeWalker [especially in light of the "live" nature
of TreeWalkers] would benefit from a detach() method, like that found in
NodeIterator.  That said, adding detach() to TreeWalker gives this interface
a signature that would allow it to be an extension of NodeIterator.

Received on Tuesday, 6 June 2000 15:02:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC