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 UTC

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