From ab68d401fbab1ce3f4425a88b736f6181f8b22b9 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Thu, 26 Feb 2015 23:40:02 -0800 Subject: [PATCH] testing with ie8 --- gridstack.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gridstack.js b/gridstack.js index 3f293f2..c18535c 100644 --- a/gridstack.js +++ b/gridstack.js @@ -27,7 +27,13 @@ create_stylesheet: function () { var style = document.createElement("style"); - style.appendChild(document.createTextNode("")); + style.setAttribute("type", "text/css"); + if (style.styleSheet) { + style.styleSheet.cssText = ""; + } + else { + style.appendChild(document.createTextNode("")); + } document.head.appendChild(style); return style.sheet; },