W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: Should Document.cloneNode() work in Level 1?

From: <keshlam@us.ibm.com>
Date: Wed, 9 Sep 1998 09:49:13 -0400
To: www-dom@w3.org
Message-ID: <8525667A.004B090C.00@us.ibm.com>
>...We just add Document.transferNode(Node node) as Ray suggested and have
>user use Node.cloneNode() with it if he is cloning over to a new document.

In cases where the "transfer" requires creating new objects (ie, when
copying content between implementations), this doubles the heap churn. I'd
suggest instead that there be a Move option as well as Copy (or rename Copy
and make this a boolean parameter), which could then recognize same-class
as a special case and optimize appropriately.
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.
Received on Wednesday, 9 September 1998 08:59:09 UTC

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