W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

RE: Implementing NodeList

From: Gavin Thomas Nicol <gtn@eps.inso.com>
Date: Tue, 28 Jul 1998 11:32:22 -0700
To: "Mike Champion" <mcc@arbortext.com>, "Stephen R. Savitzky" <steve@crc.ricoh.com>, <keshlam@us.ibm.com>
Cc: <www-dom@w3.org>
Message-ID: <000701bdba56$0f2f16e0$577670c6@endymion.eps.inso.com>
> I think the best implementation is to lazily evaluate the NodeList, i.e.,
> make the NodeList be an interface that really has what we used to call a
> NodeIterator under the covers.  That way, you only see nodes in the tree
> when the user asks for them.  That puts the burden of capturing changes to
> the tree on the call to item().

The other pattern to use is Observer. Make the NodeList and Observer of the
Document so that they automgically update themselves.
Received on Tuesday, 28 July 1998 11:33:40 GMT

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