#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: |
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 (1)
Change History (4)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Forgot to mention that it looks like it's trying to set the "display" property to "0px".
comment:3 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → 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.
Click on "Tab 2" in IE8; results in an attempt to set "display" style to "0px"