Re: L3 Core: adopting into their existing document

>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