mutation-observer-inner-html-shim

1.0.1 • Public • Published

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:

/mutation-observer-inner-html-shim/

    Package Sidebar

    Install

    npm i mutation-observer-inner-html-shim

    Weekly Downloads

    17,893

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.01 kB

    Total Files

    4

    Last publish

    Collaborators

    • javan