From 0f7e2f8a707a457a4a95f21a5f5cd910f6f5ef13 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 30 Aug 2020 09:10:44 +0200 Subject: [PATCH] Fixes #30 --- src/utils/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index 6af4cf3..1c9cb03 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -35,7 +35,12 @@ const deflateNodeList = parents => { // Replace original children with deflated parents.forEach(parent => { const deflatedChildren = deflateOne(parent); - parent.innerHTML = ''; + + // This would be easier, but breaks on IE11 + // parent.innerHTML = ''; + while (parent.firstChild) + parent.removeChild(parent.lastChild); + deflatedChildren.forEach(node => parent.appendChild(node)); });