W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

RE: An observation about "live" NodeLists

From: Mike Champion <mcc@arbortext.com>
Date: Fri, 16 Oct 1998 16:20:27 -0400
Message-Id: <3.0.5.32.19981016162027.00c556f0@pophost.arbortext.com>
To: www-dom@w3.org
At 08:53 PM 10/16/98 +0100, Miles Sabin wrote:
>> It may be getting late on Friday, but I don't understand how either of
>> these snippets deletes every OTHER paragraph; don't they delete EVERY
>> paragraph???
>
>Here's why ...
>
>Suppose nl enumerates the following paras,
>And, yes, I agree, this interface will be very error prone,
>because noone expects things which look like arrays to
>behave as NodeLists do.

Ahhhh ... the blinding light of revelation.  Yup, I gotta admit this is
counter-intuitive... I *did* think of NodeLists as arrays ... 

I wish I'd thought of this example a year ago when we were fighting the
great NodeList vs Iterator war....

Mike Champion
Received on Friday, 16 October 1998 16:21:13 GMT

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