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

Document.renameNode(), need use-case for `removing and new creating`

From: Christian Parpart <cparpart@surakware.net>
Date: Sat, 5 Oct 2002 02:13:48 +0200
To: Philippe Le Hegaret <plh@w3.org>
Cc: www-dom@w3.org
Message-Id: <200210050213.50231.cparpart@surakware.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

After reading _multiple_ times the specification for that function,
Node Document.renameNode(in Node, in DOMString NSURI, in DOMString QName),
I am really confused about the content. 

Clear is, that only Element and Attr nodes may be renamed. Although the spec 
says that it must be done without removing-recreating the node, when 
possible. Then, it comes up with a long and not easy to understand 
description (for me) on how to remove the given node and create a new one, 
what rulez to take care about.

I have no use-case for removing and recreating the given node. I'd just change 
the qname and the namespaceURI. Am I wrong?

Best regards,
Christian Parpart.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ni68Ppa2GmDVhK0RAp7wAJ49yGcvcTwAoZ9Mp0XR5w5izMLNDwCeIH6d
YnE7sMjc0jb7El651+eFsfU=
=nRsB
-----END PGP SIGNATURE-----
Received on Friday, 4 October 2002 20:14:25 GMT

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