]> source.dussan.org Git - jquery.git/commitdiff
Make sure that mixed case alpha filters are handled correctly in IE. Fixes #5632.
authorJohn Resig <jeresig@gmail.com>
Tue, 28 Sep 2010 15:57:20 +0000 (08:57 -0700)
committerJohn Resig <jeresig@gmail.com>
Tue, 28 Sep 2010 15:57:20 +0000 (08:57 -0700)
src/css.js
test/unit/css.js

index 61cdc48f90b80fe81dc9aa352c0de51c6134cb2a..79ae00e37d0fe5a257c285bf08103095946cc482 100644 (file)
@@ -1,6 +1,6 @@
 (function( jQuery ) {
 
-var ralpha = /alpha\([^)]*\)/,
+var ralpha = /alpha\([^)]*\)/i,
        ropacity = /opacity=([^)]*)/,
        rdashAlpha = /-([a-z])/ig,
        rupper = /([A-Z])/g,
index 24aba794be7f71ed5e34d604ca6311f5cf4e6a52..8802fc00a4960243410f5469a29a7416686eb37b 100644 (file)
@@ -112,7 +112,7 @@ if(jQuery.browser.msie) {
                jQuery('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');");
        equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" );
 
-    var filterVal = "progid:DXImageTransform.Microsoft.alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
+    var filterVal = "progid:DXImageTransform.Microsoft.Alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
     var filterVal2 = "progid:DXImageTransform.Microsoft.alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
     jQuery('#foo').css("filter", filterVal);
     equals( jQuery('#foo').css("filter"), filterVal, "css('filter', val) works" );