Fix for #1064 and added tests for setting/getting opacity
[jquery.git] / src / jquery / jquery.js
index 0c00829..0f79216 100644 (file)
@@ -1537,7 +1537,7 @@ jQuery.extend({
                        }
 
                        return elem.filter ? 
-                               (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : "";
+                               (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : 1;
                }
                
                // Certain attributes only work when accessed via the old DOM 0 way