dom: poylfill HTMLCollection foreach

This commit is contained in:
jean-emmanuel 2018-11-06 20:32:45 +01:00
parent d11bc3e76b
commit eabae9bd05

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
}