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:39:54 -0400
Message-Id: <3.0.5.32.19981016163954.00c4ec40@pophost.arbortext.com>
To: steve@crc.ricoh.com (Stephen R. Savitzky)
Cc: <www-dom@w3.org>
At 01:32 PM 10/16/98 -0700, Stephen R. Savitzky 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???
>
>I think this proves my point.  After item 0 is deleted, the live NodeList
>gets effectively re-indexed.  The paragraph that _used_ to be item 1 is now
>item 0.  The paragraph that used to be item 2 is now item 1, so that gets
>deleted next.  And so on.

Yes indeed, you have totally convinced me of your point. 
So, I guess it needs to be a FAQ item ...

Mike
Received on Friday, 16 October 1998 16:40:41 GMT

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