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>
Questions:
1.  TreeWalker.getParentNode() returns an ancestor, not necessarily the
parent.  Should it not be renamed getAncestorNode() to reflect the
semantics?
2.  TreeWalker.getFirstChild()/getLastChild() apparently don't drill down,
but only return "direct" offspring.  Can you confirm this/clarify the
specification.

Comments:
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.

	Keith
Received on Tuesday, 6 June 2000 15:02:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT