We need to do this because all of the children need to be re-added to the new parent node since you can't just change a tag name in the browser. By removing from the node map, the elements will all appear to be new. Clearly a comment is warranted here to explain this, though. I'll add that.