Bug Tracker

Modify

Ticket #1273 (closed bug: worksforme)

Opened 6 years ago

Last modified 14 months ago

Problem with IE7, attr and opacity

Reported by: lagunas Owned by:
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: attr opacity Cc:
Blocking: Blocked by:

Description

I had to change in the attr function to check for elem.filter before replacing it :

if (name == "opacity" &&

jQuery.browser.msie && value != undefined ) { IE has trouble with opacity if it does not have layout Force it by setting the zoom level elem.zoom = 1; Set the alpha filter to set the opacity return elem.filter =

(elem.filter ? elem.filter.replace(/alpha\([\)]*\)/gi,"") : "") + (value == 1 ? "" : "alpha(opacity=" + value * 100 + ")" );

}

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Version changed from 1.1.2 to 1.1.3
  • Resolution set to worksforme
  • Milestone changed from 1.1.3 to 1.1.4

This was resolved in jQuery 1.1.3.

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.