Opened 12 years ago
Last modified 12 years ago
#9410 confirmed Bug
An issue applying rowspan for the last column of a table
Reported by: | Vladimri S. | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Tables | Version: | 3.1 |
Keywords: | Cc: |
Description
When rowspan is applied columnwise to the equal amount of rows, e.g.
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <tbody> <tr> <td colspan="1" rowspan="3"> </td> <td colspan="1" rowspan="3"> </td> <td> </td> </tr>
...rowspan'ing the last column the same way in WYSIWIG should most probably lead to replacing all previously made rowspans and colspans with simple <td></td>, but it doesn't. It leads to strange errors and weird table behaviour.
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Keywords: | ui table rowspan merging cells removed |
---|---|
Status: | new → pending |
Version: | 3.6.4 |
rowspan'ing the last column
This is impossible with code you have provided (merge option is disabled)
Could you please provide full html example and detailed steps explaining how to reproduce the issue?
Please write in which browser it occurs.
comment:3 Changed 12 years ago by
Oh, I see, here's more detail: It occurs in Firefox 15.0.1 (the newest version). Here's the full example of a regular 3x3 table, where rowspan via UI's "Merge Cells" has been applied to first two rows (except the last column).
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <tbody> <tr> <td colspan="1" rowspan="2"> </td> <td colspan="1" rowspan="2"> </td> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> <p> </p>
Obviously, when "Merge Cells" is applied to the two remaining cells of the last un-rowspan'd column, it must result in table turning into 2x3 form without any rowspan'd cells, like this:
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <tbody> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> <p> </p>
...which doesn't happen. These two remaining cells are being in fact rowspan'd too:
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <tbody> <tr> <td colspan="1" rowspan="2"> </td> <td colspan="1" rowspan="2"> </td> <td colspan="1" rowspan="2"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> <p> </p>
Which looks in browser (tested in Firefox and Chrome) more like 1x6 table with a thick upper border in last three cells.
The more rows you have, the weirder results you get, when rowspan'ing any number of rows (excluding the last one) columnwise.
Thank you in advance!
comment:4 Changed 12 years ago by
Component: | General → Core : Tables |
---|---|
Status: | pending → confirmed |
Version: | → 3.1 |
Reproducible in all browsers from CKEditor 3.1
By this I meant "applying 'merge cells' though context menu in UI", to be precise.