Andy Clark wrote:
> 
> Okay, now I'm able to duplicate it. I *never* use NodeList to
> iterate over the children because it is inherently slow because
> the iterator must be "live", per the DOM Level 1 specification.

So it's better to iterate over the children by hand than to use a
NodeList? I've been noticing that (for example) removing all the items
in a NodeList seems to take longer than I'd hoped. 

We're migrating some of our code from using SAX and a DIY tree structure
to manipulations of a DOM tree, and I certainly don't want it to perform
slower. Is there a DOM performance-FAQ or similar I should be reading?

Cheers,
Mike.

-- 
Mike Mason, Software Engineer
XML Script Development Team                    Office: 44-1865-203192
http://www.xmlscript.org/                      Mobile: 44-7050-288923

Reply via email to