1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00

Fixed issue with applying stylesheets on IE

This commit is contained in:
Jeremy Ruston 2012-04-19 10:55:14 +02:00
parent de979a3af2
commit bbb817d18d

View File

@ -276,7 +276,7 @@ utils.applyStyleSheet = function(id,css) {
if(el) {
el.parentNode.removeChild(el);
}
doc.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd",
document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd",
'&nbsp;<style id="' + id + '" type="text/css">' + css + '</style>'); // fails without &nbsp;
} else { // Modern browsers
if(el) {