Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5132 closed bug (invalid)

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

Change History (2)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

There is no signature of .removeClass() that takes a second numeric argument.

Animation is documented to only animate numeric values.

comment:2 Changed 8 years ago by anonymous

This should be reopened or given a new duplicate as this occurs with a switchClass() when one or both of the classes change the font-weight.

Note: See TracTickets for help on using tickets.