NodeList (Re: CSS::SAC)

(moved from www-style@w3.org to www-dom@w3.org)

Robin Berjon wrote:
> 
> At 05:51 04/03/2001 +0100, Bjoern Hoehrmann wrote:
> >| There is no SelectorList class (for now at least). SelectorLists are
> >| passed as simple Perl array refs. Likewise for the SACMediaList. This
> >| may change at some point if I realize that there is value in making
> >| those into objects, but for now it seems useless. If I change it, they
> >| will still be accessible as array refs.
> >
> >It would be consistent with the DOM if those lists are objects with
> >item() and getLength() methods.
> 
> In the new Perl DOMs, NodeLists aren't objects either, just plain and
> simple arrayrefs.

That seems inconsistent with the DOM spec. How does it implement the live
aspects of NodeLists if it is an array?

Philippe

Received on Tuesday, 20 March 2001 17:02:46 UTC