Skip to main content

Bug Tracker

Side navigation

#6271 closed bug (duplicate)

Opened March 12, 2010 05:16AM UTC

Closed November 20, 2010 10:12PM UTC

Last modified March 14, 2012 02:30AM UTC can set invalid filter styles under IE

Reported by: vortfu Owned by:
Priority: undecided Milestone:
Component: core Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

If an invalid opacity value is passed to it will still cause an inline filter style attribute to be set under IE - breaking any existing filter styles.

This bug came about during testing of some code which uses fadeIn() on an element which already has an opacity/filter style applied.

Please see the attached test HTML for an example.

In non IE browsers, the blue div is faded in on top of the red div from 0% to 50% opacity (purple's a fruit).

In IE the div fades in from 0% to 50% and then an empty filter style ("filter: ;") is applied and IE bumps the opacity all the way up to 100% (blue IS NOT a fruit)

Whether or not this is a problem with style() or with fadeIn() is up to you, but a quick patch (attached) to style() seemed to fix the problem for me.

Attachments (2)
  • jquery-patch.txt (0.9 KB) - added by vortfu March 12, 2010 05:16AM UTC.


  • jquery-test.html (1.0 KB) - added by vortfu March 12, 2010 05:16AM UTC.

    Test HTML

Change History (4)

Changed March 12, 2010 05:25AM UTC by vortfu comment:1

s/Component: core/Component: css/

Changed November 12, 2010 02:40AM UTC by snover comment:2

milestone: 1.4.3

Resetting milestone to future.

Changed November 20, 2010 10:12PM UTC by snover comment:3

priority: → undecided
resolution: → duplicate
status: newclosed

Changed November 20, 2010 10:12PM UTC by snover comment:4

Duplicate of #6841.