Skip to content
Permalink
Browse files

Trying .removeAttribute instead of the regexp to remove the filter at…

…tribute
  • Loading branch information...
gnarf committed Jul 14, 2011
1 parent 15cd7d8 commit d1c4f0e0d19da3478640bdff64a4c419683553a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/css.js
@@ -2,7 +2,6 @@

var ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/,
rfilter = /filter:[^;]*;?/i,
// fixed for IE9, see #8346
rupper = /([A-Z]|^ms)/g,
rnumpx = /^-?\d+(?:px)?$/i,
@@ -225,7 +224,8 @@ if ( !jQuery.support.opacity ) {

// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
// if "filter:" is present at all, clearType is disabled, we want to avoid this
style.cssText = style.cssText.replace( rfilter, "" );
// style.removeAttribute is IE Only, but so apparently is this code path...
style.removeAttribute( "filter" );

// if there there is no filter style applied in a css rule, we are done
if ( currentStyle && !currentStyle.filter ) {

0 comments on commit d1c4f0e

Please sign in to comment.
You can’t perform that action at this time.