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.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!