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:

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    14,842
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    14,842
  • 1.0.0
    5,622

Package Sidebar

Install

npm i mutation-observer-inner-html-shim

Weekly Downloads

20,464

Version

1.0.1

License

MIT

Unpacked Size

3.01 kB

Total Files

4

Last publish

Collaborators

  • javan