Fix template bug for IE11

This commit is contained in:
juliandescottes 2017-05-14 18:55:51 +02:00
parent 76563bfc41
commit d18b85df16

View file

@ -28,7 +28,10 @@
var dummyEl = ns.Template._getDummyEl();
dummyEl.innerHTML = html;
var element = dummyEl.children[0];
dummyEl.innerHTML = '';
if (!pskl.utils.UserAgent.isIE11) {
dummyEl.innerHTML = '';
}
return element;
},
@ -78,7 +81,9 @@
dummyEl.textContent = string;
var sanitizedString = dummyEl.innerHTML;
dummyEl.innerHTML = '';
if (!pskl.utils.UserAgent.isIE11) {
dummyEl.innerHTML = '';
}
return sanitizedString;
},