dom: poylfill HTMLCollection foreach

This commit is contained in:
jean-emmanuel 2018-11-06 20:32:45 +01:00
parent 76bb845492
commit 1db3b3b7d1

View file

@ -8,5 +8,13 @@ if (!Object.values) {
}
if (!NodeList.prototype.forEach) {
NodeList.prototype.forEach = Array.prototype.forEach
}
if (!HTMLCollection.prototype.forEach) {
HTMLCollection.prototype.forEach = Array.prototype.forEach
}