> Note that getElementsByTagName searches the entire subtree. That means it
> may find any maching descendent element, not just immediate children of
the
> node you're starting from. Depending on the structure of your document,
> this may not make a difference in the results -- but it's a more expensive
> search operation than examining the immediate children.
>
> Personally, I generally recommend avoiding either operation for serious
> application development, since NodeLists have some programming and
> performance hazards as documented in the DOM FAQ. It's not hard to either
> navigate the document tree explicitly or use the DOM Level 2 "traversal"
> mechanisms.
>

Can you please help me find out about "traversal" mechanisms?
Where are they documented? I need a way to get a list of all subelemenents
(direct children) of an element that have a given tagname. It seems that
neither getChildren nor getElementsByTagName can do that.

Thanks,

G. Akrivas


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

Reply via email to