element-remove-polyfill

Element.remove polyfill for ie11 and lower version ie browser

Usage no npm install needed!

<script type="module">
  import elementRemovePolyfill from 'https://cdn.skypack.dev/element-remove-polyfill';
</script>

README

Element.remove Polyfill for IE11/IE10/IE9 and lower IE

npm npm

Install

NPM

npm install element-remove-polyfill

YARN

yarn install element-remove-polyfill

How it works

There is no remove in Element.prototype on lower version IE. IE10/IE11 will throw exception:

Object doesn't support property or method 'remove'
Error 对象不支持“remove”属性或方法

We polyfill it by add remove to the prototype.