W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re: Element name

From: <keshlam@us.ibm.com>
Date: Tue, 23 May 2000 10:29:24 -0400
To: "Fabio Gurgone" <gurgone@txt.it>
cc: "DOM ML" <www-dom@w3.org>
Message-ID: <852568E8.004F961D.00@D51MTA03.pok.ibm.com>
> can someone tell me if there's a way to change the Element tag name ?

There isn't. The node name is immutable.

If you need a different  tag name, create a new Element node with the
desired name and insert it in place of the old Element. Remember to move
any children and/or attributes to the new node.

______________________________________
Joe Kesselman  / IBM Research
Received on Tuesday, 23 May 2000 10:30:28 GMT

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