From c4633a97573541500732515001433de0ddc3568b Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 10 Apr 2014 16:05:36 +0100 Subject: [PATCH] Fixed IE6 hanging stylesheet.addRule hangs in IE6 when the an unsupported selector is used. Appending to cssText works around this issue. --- src/flexie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flexie.js b/src/flexie.js index 631deea..e63d9c6 100755 --- a/src/flexie.js +++ b/src/flexie.js @@ -1387,7 +1387,7 @@ var Flexie = (function (win, doc) { target.style.zoom = "1"; if (BROWSER.IE === 6) { - stylesheet.addRule(selector.replace(/\>|\+|\~/g, ""), paddingFix + "zoom:1;", 0); + stylesheet.cssText += selector.replace(/\>|\+|\~/g, "") + "{" + paddingFix + "zoom:1;}"; } else if (BROWSER.IE === 7) { stylesheet.addRule(selector, paddingFix + "display:inline-block;", 0); }