W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: Adding DOM-document to another DOM-document

From: Philippe Le Hegaret <plh@w3.org>
Date: Mon, 10 Dec 2001 11:14:55 -0500
Message-ID: <3C14DF7F.177D6742@w3.org>
To: Henna Ilvonen <hilvonen@intellitel.com>
Cc: www-dom@w3.org
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 GMT

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