Permalink
Browse files

Fixes #167: IE7 refresh problem

  • Loading branch information...
jakub-g committed Oct 1, 2012
1 parent c524ada commit 287ad5cc14b307745ff99368b521e1909af562d9
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/aria/utils/Dom.js
View
@@ -159,10 +159,13 @@ Aria.classDefinition({
this.refreshDomElt = function (domElt) {
// Ugly fix for IE, it might fail if domElt is inside an iFrame
try {
- domElt.parentNode.style.cssText += "";
- domElt.parentNode.style.zoom = 1;
- domElt.style.cssText += "";
- domElt.style.zoom = 1;
+ // PTR5975877 (IE7) PTR6034278 (IE9 in IE7mode)
+ var s1 = domElt.parentNode.style, s2 = domElt.style;
+ var dummyCss = "foo:foo;"; // do not add leading ';' here!
+ s1.cssText += "";
+ s1.zoom = 1;
+ s2.cssText += dummyCss;
+ s2.cssText = s2.cssText.replace(dummyCss, "");
} catch (ex) {}
};
} else if (aria.core.Browser.isIE8) {

0 comments on commit 287ad5c

Please sign in to comment.