> From: Zhaohua Meng [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 08, 2001 8:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Accessing to a specific child Element
> 
> 
> If you can be sure that there is only one such Element,
> why don't use this:
> 
> getElementsByTagName(yourUniqueTagName).item(0);
> 
> It should give you the node without declaring a NodeList.

Bad Idea.

getElementsByTagName does a deep search through the whole DOM.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to