aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-08-06 11:01:32 -0500
committerCorey Frang <gnarf@gnarf.net>2012-08-06 11:01:34 -0500
commit07e50933c4293818c5b36d368368656844e4df88 (patch)
treee04cfdcba37d22eafd45cf4785e3711ed98daa0d
parentbeeab4d126b303b194899adf579d8f43e3fd5e69 (diff)
downloadjquery-07e50933c4293818c5b36d368368656844e4df88.tar.gz
jquery-07e50933c4293818c5b36d368368656844e4df88.zip
Fixes #1034 - Check for style.removeAttribute before calling it
Fixes issue in non IE browsers that happen to come down this path
-rw-r--r--src/css.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index dcba720e5..19dbb049a 100644
--- a/src/css.js
+++ b/src/css.js
@@ -534,7 +534,8 @@ if ( !jQuery.support.opacity ) {
style.zoom = 1;
// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
- if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+ if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
+ style.removeAttribute ) {
// 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