W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

Re: L3 Core: adopting into their existing document

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 7 Jan 2004 08:45:31 -0500
To: www-dom@w3.org
Message-ID: <OF4E7A85A4.447193E9-ON85256E14.004B1AEA-85256E14.004B945D@us.ibm.com>





>Would it be possible to state that WRONG_DOCUMENT_ERR should be
>thrown on attempt to adopt a node into the same document?

I'm not convinced that this is a Good Idea. It turns a mostly-harmless
operation into an error condition, and prevents adoptNode from being used
as a general safety net prior to insertion of a node obtained from an
untrusted source.

Making adopting a node into its own document be a no-op would seem to be a
cleaner fix for Curt's concern about the side-effect... though leaving it
as it now stands also strikes me as acceptable.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
Received on Wednesday, 7 January 2004 08:47:20 GMT

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