HTML DOM Document renameNode()
Description
The renameNode() method is deprecated. Do NOT use it.
It throws an error (renameNode is not a function) in all new browsers.
Note
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.
Alternatives:
For elements: Delete the element and create a new one.
For attributes: Delete the attribute and create a new one.