Closed Bug 1297 Opened 27 years ago Closed 27 years ago

TableCell.cellIndex always returning 0

Categories

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

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: angus, Assigned: karnaze)

Details

Here's some sample code: <html> <body> <table> <tr> <td onmousedown="alert(this.cellIndex)">0</td> <td onmousedown="alert(this.cellIndex)">1</td> <td onmousedown="alert(this.cellIndex)">2</td> </tr> </table> </body> </html> Mousing down on each cell should alert the number in the cell, since they correspond to the cellIndex. We seem to be resolving the cellIndex as 0 in every case. Note that TR.rowIndex has a similar problem that also needs to be fixed. I figure this is a tables thing?
Status: NEW → ASSIGNED
Assignee: buster → karnaze
Status: ASSIGNED → NEW
the unimplemented DOM calls are: section: rows, insertRow, deleteRow row: rowIndex, sectionRowIndex, insertCell, deleteCell cell: cellIndex
Status: NEW → ASSIGNED
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4015 → 4141
Summary: TableCell.cellIndex always returning 0 → TableCell.cellIndex always returning 0
QA contact re-assigned according to the product areas we're currently working on.
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
This was fixed in January. Here is an addition to the test case that tests rowIndex. <html> <body> <table border=1> <tr> <td onmousedown="alert(this.cellIndex)">cellIndex=0</td> <td onmousedown="alert(this.cellIndex)">cellIndex=1</td> <td onmousedown="alert(this.cellIndex)">cellIndex=2</td> <tr onmousedown="alert(this.rowIndex)"><td>rowIndex=1<td>rowIndex=1<td>rowIndex=1</t r> <tr onmousedown="alert(this.rowIndex)"><td>rowIndex=2<td>rowIndex=2<td>rowIndex=2</t r> </tr> </table> </body> </html>
Status: RESOLVED → VERIFIED
RCS file: /cvsroot/mozilla/testing/mochitest/tests/test_bug1297.html,v done Checking in tests/test_bug1297.html; /cvsroot/mozilla/testing/mochitest/tests/test_bug1297.html,v <-- test_bug1297.html initial revision: 1.1 done
Flags: in-testsuite+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.