diff --git a/src/index.js b/src/index.js index 0fefc8f..53479bf 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,10 @@ function polyfill() { this.parentElement.removeChild(this); } + if (Object.getPrototypeOf(Object.getPrototypeOf(HTMLSelectElement)) === null) { + HTMLSelectElement.prototype.remove = Element.prototype.remove; + } + NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { for(var i = this.length - 1; i >= 0; i--) { if(this[i] && this[i].parentElement) {