From: John Resig Date: Tue, 28 Sep 2010 15:57:20 +0000 (-0700) Subject: Make sure that mixed case alpha filters are handled correctly in IE. Fixes #5632. X-Git-Tag: 1.4.3rc1~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9190d4fd603884ed1debf8c0f7817d45b72e1aef;p=jquery.git Make sure that mixed case alpha filters are handled correctly in IE. Fixes #5632. --- diff --git a/src/css.js b/src/css.js index 61cdc48f9..79ae00e37 100644 --- a/src/css.js +++ b/src/css.js @@ -1,6 +1,6 @@ (function( jQuery ) { -var ralpha = /alpha\([^)]*\)/, +var ralpha = /alpha\([^)]*\)/i, ropacity = /opacity=([^)]*)/, rdashAlpha = /-([a-z])/ig, rupper = /([A-Z])/g, diff --git a/test/unit/css.js b/test/unit/css.js index 24aba794b..8802fc00a 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -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" );