Bug Tracker

Ticket #6224 (closed bug: invalid)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

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

Attachments

bug.html Download (1.2 KB) - added by hughbiquitous 5 years ago.
Click on "Tab 2" in IE8; results in an attempt to set "display" style to "0px"

Change History

Changed 5 years ago by hughbiquitous

Click on "Tab 2" in IE8; results in an attempt to set "display" style to "0px"

comment:1 Changed 5 years ago by hughbiquitous

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

comment:2 Changed 4 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:3 Changed 4 years ago by snover

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

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.