Re: Document cloneNode

>Note that doing deep clone of Document is a problem in DOM Level 1, since
>you have to change the ownerDocument of all the duplicated nodes or it'll
>throw wrong-document exceptions. In fact, this is the only function still
>"broken" in my implementation -- it's not at all hard to do, I just don't
>like the aesthetics of having this be the one exception to Level 1's
>decision not to support copying data from one document to another.


I sympathize with you position.  I had to add setOwnerDocument to my Node
implementation which propagates down to child nodes and any 'side' nodes
(like attributes).

Best,

Don Park

Received on Thursday, 8 October 1998 11:32:52 UTC