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


From: ANOQ of the Sun <anoq@vip.cybercity.dk>
Date: Sat, 29 Aug 1998 17:39:16 +0200
Message-ID: <35E820A4.89612E39@vip.cybercity.dk>
To: DOM List <www-dom@w3.org>

I was wondering about the cloneNode method in the 980818 spec.
As I read it, it says that it clones all attributes of an
ElementNode, and all children of all nodes if it's a deep
clone. However it also says that any other nodes except
Element does only create a copy of the Node type without
any data.

Does this mean that for instance the subclasses of
CharacterData nodes does not get their text-contents
cloned? And how about tagName in Element and similar

I think these kinds of data ought to be cloned. At least
it's the only way to make a deep-clone which actually
generates a copy of an entire subtree of a DOM node.

ANOQ of the Sun / Johnny Andersen

E-Mail:   anoq@vip.cybercity.dk or anoq@berlin-consortium.org
Homepage: http://users.cybercity.dk/~ccc25861/
Received on Saturday, 29 August 1998 11:51:17 UTC

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