Closed Bug 96489 Opened 24 years ago Closed 24 years ago

insertCell method not returning cell object

Categories

(Core :: DOM: Core & HTML, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: david, Assigned: jst)

Details

(Whiteboard: [HAVE FIX])

Attachments

(2 files)

If inserting a cell in a row between 2 other cells, I don't get the new cell object returned to the caller. It looks like the cell is being created in the correct place because it moves the cells to the right of it.
Attached file insertCell() testcase
as per the attachment: clicking on the button several times, you can see the cells moving right, but viewing the javascript console shows why the contents aren't displayed.
If index is equal to the number of cells, the new cell is appended.else it is not working ... var newcell = therow.insertCell(numcells); was used replacing var newcell = therow.insertCell(1);
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Fix bug 96489Splinter Review
*mutters something about Wshadow being turned off* retChild was redeclared in the case the new cell is inserted, but not when it is appended, which caused this bug. Thanks David for finding it.
Keywords: patch, review
Whiteboard: [HAVE FIX]
r=peterv
Attachment #47659 - Flags: superreview+
Attachment #47659 - Flags: review+
a=blizzard on behalf of drivers for 0.9.4
Comment on attachment 47659 [details] [diff] [review] Fix bug 96489 jst, will you be my guest to check this in please? Thanks a lot.
Attachment #47659 - Flags: approval+
Will do, thanks for doing all the work, Fabian.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.4
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified 2001-09-12-05
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: