1.0.1 • Published 4 years ago

mutation-observer-inner-html-shim v1.0.1

Weekly downloads
21,020
License
MIT
Repository
github
Last release
4 years ago

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: