diff options
author | Corey Frang <gnarf@gnarf.net> | 2011-07-13 22:47:34 -0500 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2011-07-13 22:47:34 -0500 |
commit | d1c4f0e0d19da3478640bdff64a4c419683553a8 (patch) | |
tree | 51327b532e2f2c4e353c0f4f3343da66c45e24cf /src/css.js | |
parent | 15cd7d83a96da8885938dbdf8f2e7d85bc09777a (diff) | |
download | jquery-d1c4f0e0d19da3478640bdff64a4c419683553a8.tar.gz jquery-d1c4f0e0d19da3478640bdff64a4c419683553a8.zip |
Trying .removeAttribute instead of the regexp to remove the filter attribute
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js index 0d12f073b..efd881653 100644 --- a/src/css.js +++ b/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 ) { |