MDN polyfills - from, forEach, filter, find, findIndex, assign, includes, create, entries, of, repeat, startsWith, endsWith, toggleAttribute, bind, MouseEvent, CustomEvent, padEnd, padStart
175
stars
25
forks
source link
'before' polyfill error in IE11 #64
Closed
fvonellerts closed 5 years ago
There is a small fault in the Node.prototype.before polyfill which results in a
ErrorNotFound
in IE11.this.insertBefore(o, this)
should bethis.parentNode.insertBefore(o, this)
It has already been fixed on MDN: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/before