W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Should Document.cloneNode() work in Level 1?

From: <keshlam@us.ibm.com>
Date: Fri, 4 Sep 1998 17:07:55 -0400
To: www-dom@w3.org
Message-ID: <85256675.0073957C.00@us.ibm.com>
The naive implementation of WRONG_DOCUMENT_ERR has a bit of trouble cloning
an entire Document tree, because (of course) if it just clones the original
document's children they remain bound to that document and can't be
assigned to the new one.

I can special-case this to make it work. But this is the sharp point of the
multiple-document question, which Level 1 explicitly doesn't address... so
there's something to be said for the lazy solution of disabling
Document.cloneNode(), at least until Level 2 resolves some of those
outstanding questions.

Any opinions on whether this cheat is justifiable or not?

______________________________________
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.
Received on Tuesday, 8 September 1998 13:46:21 GMT

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