Fixes #30
This commit is contained in:
parent
e5391cdb97
commit
0f7e2f8a70
|
@ -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));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue