Ticket #10741 (closed bug: duplicate)
jQuery.css(this, 'display') on a detached element is inconsistent across browsers
|Reported by:||davidtwtong@…||Owned by:|
in Chrome and IE, jQuery.css(this, 'display') reports on a detached element. However, in FF (I tested it on 3.6), it reports the default value of an element, such as 'block' for div.
I have a detached div#files, and in CSS it is defined as #files(display:table-cell)
The result is that, in jQuery's hide() function, jQuery._data( this[i], "olddisplay", display ) stores 'block' for a detached div, and so upon .show() it would become a block element. What I wanted is to retain its CSS style defined in the CSS file.