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

Re: Should Document.cloneNode() work in Level 1?

From: <keshlam@us.ibm.com>
Date: Tue, 8 Sep 1998 18:05:14 -0400
To: www-dom@w3.org
Message-ID: <85256679.0078F269.00@us.ibm.com>
So Document.createCopy() would become the "xeno-copy" routine we've
discussed in the past, which copies a DOM node "by content" rather than
cloning the actual object? Sounds like a good answer to me; whatever we
call it, that functionality is eventually going to be desired... and since
it has to act as a factory (since you're specifying target document),
making it one of Document's methods sounds reasonable.

Normal cloneNode() would continue to be defined on Node itself.

We'd still have to decide whether Document.cloneNode() should be
reinterpreted as "Create a new document and createCopy() of the old
document's contents" or simply be disabled.

Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.
Received on Tuesday, 8 September 1998 18:00:22 UTC

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