"Deep" replace like deep clone?

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 UTC