Opened 13 years ago
Closed 13 years ago
#8214 closed Bug (duplicate)
Invalid table colspans break row insert
Reported by: | Matthew Leffler | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Tables | Version: | |
Keywords: | Cc: |
Description
Reproduce steps:
- Open demo
- Paste the following in source:
<table> <tbody> <tr> <td colspan="4"> First row</td> </tr> <tr> <td> 1</td> <td colspan="2"> 2</td> </tr> </tbody> </table>
- Click source again to leave source mode.
- Right click table and insert row before or after.
Expected result
The row will be inserted before or after, respectively.
Actual result
No row is inserted and in webkit browsers a JS error is thrown:
Uncaught TypeError: Cannot read property 'rowSpan' of undefined
Browsers
This was tested with Chrome 12, FF5, and Safari 5.1.
This is a duplicate of #7996