W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

"Deep" replace like deep clone?

From: Andrew Fitzhugh <fitzhugh@cup.hp.com>
Date: Mon, 14 Dec 1998 15:20:18 -0800
To: "DOM List" <www-dom@w3.org>
Message-ID: <001b01be27b8$50034590$ba5a000f@samba.cup.hp.com>
In DOM level 1, Node::cloneNode() uses its deep parameter to make a
distinction between cloning a node, and cloning a node and its children.  It
seems that Node::replaceChild() could also make a similar distinction: a
"deep" replace replaces the node+children, and a "shallow" replace replaces
the node, and the new node adopts the old one's children.

Does DOM level 1 assume the deep replace as I've described it?  If yes,
would a shallow replace be useful?

Regards,

-- Andy
________________________________________________________________________
Andrew Fitzhugh                                      fitzhugh@cup.hp.com
HP Internet Imaging Operation
Received on Monday, 14 December 1998 18:20:42 GMT

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