Replace Node Name
问题 Is it possible to replace a nodes name? Like: HTML: <strong id="element">Text</strong> Javascript: var element = document.getElementById("element"); element.nodeName = "b"; As I see it's not working, if it's not possible in this way, then how can it be done? Why I need it: I'm building a Text Editor, and IE uses strong instead of b in the execCommand() function and I would like to change that, I tried to build the execCommand("bold") from scratch but there is a lots of problem and differences