dom: poylfill HTMLCollection foreach
This commit is contained in:
parent
76bb845492
commit
1db3b3b7d1
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue