In IE 11, nodes in MutationRecord.removedNodes
are always empty when they're removed by setting innerHTML
. This shim works around the issue by patching HTMLElement.innerHTML
to remove each child node individually before setting the new value.
References: