From 1db3b3b7d18f2b4c8654c60d14f1d5554832629c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 6 Nov 2018 20:32:45 +0100 Subject: [PATCH] dom: poylfill HTMLCollection foreach --- src/client/app/polyfills.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/app/polyfills.js b/src/client/app/polyfills.js index b780bd24..03ff70bc 100644 --- a/src/client/app/polyfills.js +++ b/src/client/app/polyfills.js @@ -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 + }