Ticket #1003 (closed bug: duplicate)
oldDisplay gets overwritten with 'block' and borks some UAs
|Reported by:||dohpaz||Owned by:|
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.