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
jQuery.style() 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: |
Description
If an invalid opacity value is passed to jQuery.style 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.
s/Component: core/Component: css/