In DOM Level 2, renaming a node was a relatively expensive operation: You had to create a new node, copy all the data to the new node, insert the new node into the tree, and delete the old one.
在DOM Level 2中,重命名一个节点的操作代价较高:必须在树中创建一个新节点,并删除老的节点。
youdao