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

[www-dom] <none>

From: Claude Zervas <claude@utlco.com>
Date: Mon, 01 Jun 1998 00:31:25 -0700
Message-Id: <3.0.3.32.19980601003125.00929220@mail.blarg.net>
To: www-dom@w3.org
Hello,

Would there be any chance that the node tree traversal
methods in the Node interface be deprecated and sent
to some sort of work camp for bunk code patterns?

It seems to me that NodeIterator could handily replace
them and be much more efficient for most implementations.
The aggregate/iterator pattern is pretty standard these
days (C++ STL, Java JGL, Java 1.2 Collections, etc.)
[See Gamma et al] and is not only easy to use but
implementing it is a snap!

IMHO the following methods can be summarily deprecated:

	Node.getFirstChild()
	Node.getPreviousSibling()
	Node.getNextSibling()

Also, I saw some previous posts requesting that reference
counting be somehow tacked on to the DOM. I vote no on that.

Thanks,
Claude Zervas, UTL Co., Seattle
Received on Monday, 1 June 1998 03:24:29 GMT

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