Side navigation
#5132 closed bug (invalid)
Opened August 27, 2009 08:17PM UTC
Closed January 29, 2010 02:37AM UTC
Last modified March 10, 2012 06:54AM UTC
jQuery bug with Internet Explorer
Reported by: | Ryan | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | bug ie font weight fontweight | Cc: | |
Blocked by: | Blocking: |
Description
I came an error in Internet Explorer (I'm using 8, probably exists in all) when I was removing a class with animation.
I was trying to remove a class that contained a font-weight: bold declaration. When removing it using an animation effect it crashed in IE because I believe it was trying to animate the font-weight, which you cannot do it IE. It worked fine in FireFox.
Crashes with animation (IE only)
$('.classWBold').removeClass('classWBold', 1500);
Fine without animation
$('.classWBold').removeClass('classWBold');
Here is the error from IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Thu, 27 Aug 2009 20:15:50 UTC
Message: Could not get the fontWeight property. Invalid argument.
Line: 19
Char: 35190
Code: 0
URI: http://localhost/myproject/public/js/jquery-1.3.2.min.js
There is no signature of
that takes a second numeric argument.Animation is documented to only animate numeric values.