Commit d1c4f0e0 authored by Corey Frang's avatar Corey Frang

Trying .removeAttribute instead of the regexp to remove the filter attribute

parent 15cd7d83
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
var ralpha = /alpha\([^)]*\)/i, var ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/, ropacity = /opacity=([^)]*)/,
rfilter = /filter:[^;]*;?/i,
// fixed for IE9, see #8346 // fixed for IE9, see #8346
rupper = /([A-Z]|^ms)/g, rupper = /([A-Z]|^ms)/g,
rnumpx = /^-?\d+(?:px)?$/i, rnumpx = /^-?\d+(?:px)?$/i,
...@@ -225,7 +224,8 @@ if ( !jQuery.support.opacity ) { ...@@ -225,7 +224,8 @@ if ( !jQuery.support.opacity ) {
// Setting style.filter to null, "" & " " still leave "filter:" in the cssText // 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 // 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 there there is no filter style applied in a css rule, we are done
if ( currentStyle && !currentStyle.filter ) { if ( currentStyle && !currentStyle.filter ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment