You can not. By default, you are tagName, but it is read-only. Instead, you should create a new node of the desired type, and then transfer innerHTML (and any other properties, such as className or style) to the new node. Then insert the new node into the old parent of the node, then delete the old node (or use replaceChild).
In other words, a long road is the only road.
source share