HTML DOM Document renameNode()
Definition and Usage
The renameNode() method is deprecated. Do NOT use it.
It throws an error (renameNode is not a function) in all new browsers.
The renameNode() method was a DOM Core Level 3 (2004) feature.
It was supposed to be used to rename nodes of type Element and Attr.
For elements: Delete the element and create a new one.
For attributes: Delete the attribute and create a new one.