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: <>
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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC