Fix template bug for IE11
This commit is contained in:
parent
76563bfc41
commit
d18b85df16
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue