Ticket #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: | ||
| 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
Change History
comment:1 Changed 3 years ago by hughbiquitous
Forgot to mention that it looks like it's trying to set the "display" property to "0px".
comment:3 Changed 3 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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


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