Ticket #4535 (closed bug: duplicate)
using show with parameters removes attributes from td
| Reported by: | tonyt | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | effects | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Test case
<table> <tbody> <tr> <td id="hcol" colspan = "4" style="display:none"> somedata</td> </tr> <tr> <td>one</td> <td>one</td> <td>one</td> <td>one</td> </tr> </tbody> </table>
Then after $("#hcol").show("normal");
from the table the colspan atribute is removed and the structure of the table is lost.
Attachments
Change History
comment:4 Changed 3 years ago by petersendidit
The problem was that jQuery was using display:block for all animations, but doesn't need to when the element is a table, tbody, tr, td, th
http://github.com/petersendidit/jquery/commit/0017c96739387b24cbb7bd1a9506eb0950dbbe4c
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Same as #4492 (that time with rowspan) but a better generic description. Can you provide a complete test case?