1.0.1 • Published 4 years ago
mutation-observer-inner-html-shim v1.0.1
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: