Bug Tracker

Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#6224 closed bug (invalid)

Animating display and opacity with "toggle" causes "Invalid argument" error in IE8

Reported by: hughbiquitous Owned by:
Priority: undecided Milestone:
Component: effects Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


The attached file is resulting in the following error when I click on "Tab 2" in IE8. Firefox and Chrome work fine.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) Timestamp: Thu, 4 Mar 2010 18:35:42 UTC

Message: Could not get the display property. Invalid argument. Line: 5899 Char: 5 Code: 0 URI: http://code.jquery.com/jquery-1.4.2.js

Change History (3)

comment:1 Changed 7 years ago by hughbiquitous

Forgot to mention that it looks like it's trying to set the "display" property to "0px".

comment:2 Changed 6 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:3 Changed 6 years ago by snover

  • Priority set to undecided
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the report, but this is not a jQuery bug. As the documentation states, you cannot animate non-numeric properties with the default $.fn.animate function. If you want to toggle an element with a fade, use the $.fn.fadeToggle function instead.

Note: See TracTickets for help on using tickets.