From: John Resig Date: Thu, 26 Aug 2010 16:51:37 +0000 (-0400) Subject: Only attempt to use the IE technique for setting opacity if the filter property exist... X-Git-Tag: 1.4.3rc1~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5673e4bc3aa5991dfa51de5cb6d7027f2545ad03;p=jquery.git Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique). --- diff --git a/src/css.js b/src/css.js index ad0da6469..cb65c0ba3 100644 --- a/src/css.js +++ b/src/css.js @@ -49,7 +49,7 @@ jQuery.extend({ var style = elem.style || elem, set = value !== undefined; // IE uses filters for opacity - if ( !jQuery.support.opacity && name === "opacity" ) { + if ( !jQuery.support.opacity && name === "opacity" && style.filter ) { if ( set ) { // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level