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

RE: NodeList (was RE: NamedNodeMap)

From: Allen, Michael B (RSCH) <Michael_B_Allen@ml.com>
Date: Wed, 11 Jul 2001 17:08:09 -0400
Message-ID: <B27EB33BAB29D2119ABF0001FA7EF289053BF06A@ewfd04.exchange.ml.com>
To: www-dom@w3.org
	Well, I'm quite familiar with this section of the FAQ and it too does not address this particular issue. Ahh, insertion, that's a kicker. You say "When you insert it, it will be inserted into
the NodeList IF the insertiion point is within the subtree of the node on which getElementsByTagName() was issued". But it also becomes necessary that the new Node match the tag named specified in the
original getElementsByTagName query. In reference to my previously described "solution", I guess the structure that contains the list of NodeLists could host this string and be queried when an
isertion is performed. The solution's getting more complicated though :~(

	Mike 

> -----Original Message-----
> From:	Joseph Kesselman [SMTP:keshlam@us.ibm.com]
> Sent:	Wednesday, July 11, 2001 4:58 PM
> To:	www-dom@w3.org
> Subject:	RE: NodeList (was RE: NamedNodeMap)
> 
> 
> >  I don't think the liveness requirement is described very carefully;
> 
> It's defined very carefully, though tersely. A somewhat more readable
> description is available at http://www.w3.org/DOM/faq.html#nodelist
> 
> >if I have a node that I remove from the tree, and then add to another
> >location, should the node be included in any NodeList objects returned
> >from getElementsByTagName()?
> 
> The NodeList should always look as it would if you had just requested it.
> When you remove the node, it drops out of the NodeList. When you insert it,
> it will be inserted into the NodeList IF the insertiion point is within the
> subtree of the node on which getElementsByTagName() was issued.  Note that
> the location where it's inserted may be different from where it was
> removed, since the NodeList displays the nodes in document order.
> 
> 
> 
> 
> ______________________________________
> Joe Kesselman  / IBM Research
> 
Received on Wednesday, 11 July 2001 17:08:12 GMT

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