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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC