Side navigation
#1003 closed bug (duplicate)
Opened February 27, 2007 11:10PM UTC
Closed March 15, 2007 05:18PM UTC
Last modified June 21, 2007 04:16AM UTC
oldDisplay gets overwritten with 'block' and borks some UAs
Reported by: | dohpaz | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | effects | Version: | 1.1.1 |
Keywords: | Cc: | dohpaz@gmail.com | |
Blocked by: | Blocking: |
Description
It seems that when using an fx animation the oldDisplay variable gets overwritten with 'block', which can adversely affects how a UA (such as FF) redisplays the item.
An example demonstrating this problem can be found at http://dohpaz.mine.nu/jquery/block.html It uses an alert to show the value of oldDisplay at the time that it gets set during the animation/effect. You should see three alerts: either table or table-row, block, and block.
I don't see how it could be my code, as it is very plain and straight-forward. This doesn't happen when using a plain show() or hide() (i.e., no arguments). Also, once a table row is borked, it doesn't seem to be fixable without a refresh of the page. I have tried manually applying the correct display (using .css('display', 'table-row') and .css('display', '')), and have tried hiding/showing it with no arguments.
My apologies, but apparently this issue has already been described in a bug 8 months ago. (Bug #24: http://dev.jquery.com/ticket/24) Please mark this as a duplicate and close this ticket. I will be more thorough in the future. :)