Closed
Bug 34811
Opened 26 years ago
Closed 26 years ago
(re)adding deleted row messes up table display
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martin.honnen, Assigned: jst)
Details
Attachments
(1 file)
|
1.53 KB,
text/html
|
Details |
I use the following
function deleteAndAddRow () {
var table = document.getElementById('aTable');
var row = table.rows[table.rows.length - 1];
table.deleteRow(table.rows.length - 1);
table.tBodies[0].appendChild(row);
alert('table.rows.length: ' + table.rows.length)
}
<TABLE ID="aTable" BORDER="1">
<TBODY>
<TR>
<TD>
Kibology
</TD>
</TR>
</TBODY>
</TABLE>
on a table and while the length value is alerted correctly the row is not
displayed correctly but (if there is just one row) the table degenerates to a
little rectangle of the borders.
| Reporter | ||
Comment 1•26 years ago
|
||
| Assignee | ||
Comment 2•26 years ago
|
||
Seems like this one is fixed, marking FIXED.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 3•26 years ago
|
||
Works for Me
Platform: PC
OS: Windows 98
Mozilla Version: 2000100508
Marking as Verified
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•