Re: Non-invasive scripting. Duplicating the DOM.

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
stony_dreams wrote:
> Great! Never knew that the solution would be so simple.. :D By the way, in
> case of pages with huge DOMs, would it affect the memory too much?

Well, it'd create a whole separate copy of the DOM, so yes it might take up a 
good bit of memory.

> Or would the cloneNode() function take a lot of time?

If it's a really big page, then yes, it would take some time.  You could try 
testing, of course; creating a page with a huge DOM using a perl script is 
pretty easy.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.