mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix template bug for IE11
This commit is contained in:
parent
76563bfc41
commit
d18b85df16
@ -28,7 +28,10 @@
|
|||||||
var dummyEl = ns.Template._getDummyEl();
|
var dummyEl = ns.Template._getDummyEl();
|
||||||
dummyEl.innerHTML = html;
|
dummyEl.innerHTML = html;
|
||||||
var element = dummyEl.children[0];
|
var element = dummyEl.children[0];
|
||||||
dummyEl.innerHTML = '';
|
|
||||||
|
if (!pskl.utils.UserAgent.isIE11) {
|
||||||
|
dummyEl.innerHTML = '';
|
||||||
|
}
|
||||||
|
|
||||||
return element;
|
return element;
|
||||||
},
|
},
|
||||||
@ -78,7 +81,9 @@
|
|||||||
dummyEl.textContent = string;
|
dummyEl.textContent = string;
|
||||||
var sanitizedString = dummyEl.innerHTML;
|
var sanitizedString = dummyEl.innerHTML;
|
||||||
|
|
||||||
dummyEl.innerHTML = '';
|
if (!pskl.utils.UserAgent.isIE11) {
|
||||||
|
dummyEl.innerHTML = '';
|
||||||
|
}
|
||||||
|
|
||||||
return sanitizedString;
|
return sanitizedString;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user