Bug Tracker

Modify

Ticket #1064 (closed bug: fixed)

Opened 6 years ago

Last modified 4 years ago

css('opacity') returns empty string in IE

Reported by: arrix Owned by:
Priority: major Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocking: Blocked by:

Description

css('opacity') returns an empty string in IE. Shouldn't it return "1" (as it does in Firefox).

In jQuery.attr()

return elem.filter ? (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : "";
-->
return elem.filter ? (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : "1";

should fix it.

Change History

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

Thanks Arrix.

This is now fixed in Rev: 1560.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.