W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Regarding load method.

From: Johnny Stenback <jst@netscape.com>
Date: Fri, 08 Feb 2002 20:41:26 -0800
Message-ID: <3C64A876.6040802@netscape.com>
To: Santosh Moholkar <moholkar@ncb.ernet.in>
CC: www-dom@w3.org
The load() method will replace the content of the document with the new 
DOM tree, and in doing so the old content of the document should be 
freed in the process (it will become garbage in a GC world, or freed in 
some other way depending on your environment).

Santosh Moholkar wrote:
> Hi,
> I would like to know
> what happens when I call "load" method on an existing
> Document object. The new document is loaded
> that is OK. But what happens to the previous
> contents of the document object. How can I
> free the memory that was previously allocated
> to the document.
> 			Santosh Moholkar.

Received on Friday, 8 February 2002 23:42:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC