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 15:18:17 -0400
To: www-dom@w3.org
Message-ID: <8525667A.00698120.00@us.ibm.com>
John Cowan asks:
>Am I missing something?

No, you've accurately described what has to be done in order to deep-clone
a Document.
     "For each Node, invoke the proper createXXX factory method on the new
      Document and copy all the (IDL) attributes: then insert it into place
      in the new tree"
That's a significant amount of additional code which in Level 1 would exist
_only_ to support Document.cloneNode(). It could be argued that, given
Level 1's decision not to handle the more general uses of this logic,
implementing it for this one specific case is less reasonable than
declining to support cloning of Documents would be.

______________________________________
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.
Received on Wednesday, 9 September 1998 14:19:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT