Re: Adding DOM-document to another DOM-document

Henna Ilvonen wrote:
> 
>  DOM-specifications don't seem to give straight answer to problem where
> DOM-document should be added in another document. There are several
> different DOM-documents which should be combined. appendChild and
> other methods that can be used with DocumentFragment seem to return
> WRONG_DOCUMENT_ERROR when trying to insert document into another (
> according to specifications ). Is this actually so and can combining be
> done somehow? I'm grateful, if somebody can help with this.

This limitation was resolved in DOM Level 2 Core. Please see
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#Core-Document-importNode

Regards,
Philippe

Received on Monday, 10 December 2001 11:15:04 UTC