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

Re: Copying from one DOM to another

From: Joseph Kesselman/Watson/IBM <keshlam@us.ibm.com>
Date: Tue, 7 Nov 2000 10:43:49 -0500
To: Elena Litani <hlitani@jtcsv.com>
Cc: "Juan J. Merelo" <jj.merelo@civista.com>, www-dom@w3.org
Message-ID: <OF46157D1A.F8A60020-ON85256990.00564687@pok.ibm.com>

The Level 3 adoptNode() method is definitely not the right answer for this
particular cases. adoptNode() will only succeed when the two Documents are
in "the same implementation" -- and even subclasses of the same
implementation may not be compatable enough for adoptNode() to run
successfully.

Unless tidy is using the Xerces DOM, you will definitely not be able to
adopt tidy's nodes.


______________________________________
Joe Kesselman  / IBM Research
Received on Tuesday, 7 November 2000 10:44:54 GMT

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