Would it behave the same way if you set the `.innerHTML` while the node was detached, and then reattached it?
```js
var parent = node.parentNode;
var nextSib = node.nextSibling;
parent && parent.removeChild(node);
node.innerHTML = ...;
parent && parent.insertBefore(node, nextSib);
```