| Index: polyfill.js |
| diff --git a/polyfill.js b/polyfill.js |
| index b00d4e5d79c6ab6024fd76b33da0a4781a20f7b8..8775d310781eef20ffeec703456b57d806cda02a 100644 |
| --- a/polyfill.js |
| +++ b/polyfill.js |
| @@ -137,4 +137,13 @@ |
| } |
| } |
| }; |
| + |
| + // Workaround since HTMLCollection, NodeList, StyleSheetList, and CSSRuleList |
| + // didn't have iterator support before Chrome 51. |
| + // https://bugs.chromium.org/p/chromium/issues/detail?id=401699 |
| + for (let object of [HTMLCollection, NodeList, StyleSheetList, CSSRuleList]) |
| + { |
| + if (!(Symbol.iterator in object.prototype)) |
| + object.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; |
| + } |
| }()); |