Changeset 4013
- Timestamp:
- 12/04/07 18:15:27 (1 year ago)
- Location:
- trunk/jquery
- Files:
-
- 2 modified
-
src/core.js (modified) (1 diff)
-
test/unit/core.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r3985 r4013 1065 1065 } 1066 1066 1067 return elem.filter ?1067 return elem.filter && elem.filter.indexOf("opacity=") >= 0 ? 1068 1068 (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : 1069 1069 ""; -
trunk/jquery/test/unit/core.js
r3985 r4013 381 381 382 382 test("css(String, Object)", function() { 383 expect(1 8);383 expect(19); 384 384 ok( $('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible'); 385 385 $('#foo').css('display', 'none'); … … 405 405 $('#foo').css('opacity', ''); 406 406 ok( $('#foo').css('opacity') == '1', "Assert opacity is 1 when set to an empty String" ); 407 // for #1438, IE throws JS error when filter exists but doesn't have opacity in it 408 if (jQuery.browser.msie) { 409 $('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');"); 410 } 411 equals( $('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" ); 407 412 }); 408 413
