The renameNode()
method renames nodes of type Element and Attr.
renameNode |
No | No | No | No | No |
document.renameNode(node, namespaceURI, nodename)
Parameter | Type | Description |
---|---|---|
node | Node object | Required. The node object to rename |
namespaceURI | String | Required, namespace URI of the node |
nodename | String | Required, the new nodename |
Type | Description |
---|---|
Node object | The renamed node |