IE : Delete table rows may throw a js error
- Load the following HTML:
<table border="1" cellpadding="1" cellspacing="1" style="width: 200px">
<tbody>
<tr>
<td>
AAA</td>
<td>
BBB</td>
</tr>
<tr>
<td>
CCC</td>
<td>
DDD</td>
</tr>
<tr>
<td>
EEE</td>
<td>
FFF</td>
</tr>
</tbody>
</table>
- Select the entire text of the two first rows with the mouse. This is an important step. The everything from AAA to DDD must be selected.
- Open the context menu for the selection.
- Select Row > Delete Rows.
A JavaScript error is thrown.
Change History (4)
Keywords: |
Review? added
|
Owner: |
set to Garry Yao
|
Status: |
new →
assigned
|
Keywords: |
Review+ added; Review? removed
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
This's a common case of inadequate selection error because of DOM manipulation (remove rows), by managing the selection after row deletion (e.g. put cursor into next row), this problem will be resolved.