Closed Bug 9043 Opened 25 years ago Closed 25 years ago

TH.cellIndex returns -1

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: martin.honnen, Assigned: karnaze)

Details

(Whiteboard: [TESTCASE] TH.cellIndex returning negative val)

Attachments

(3 files)

Accessing the
  cellIndex
property of a TH element shows
  -1
while TD shows the expected value; Example

<HTML>
<HEAD>
</HEAD>
<BODY>
<TABLE>
<THEAD>
<TR>
<TH ONCLICK="alert(this.cellIndex);">
Name
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD ONCLICK="alert(this.cellIndex);">
Kibo
</TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>
QA Contact: gerardok → janc
Attached file bug demonstration
Whiteboard: [TESTCASE] TH.cellIndex returning negative val
The first attachment also likes to create lots of extra windows on the screen.
The new one displays the value in an <INPUT> field.

Oh, and the <TH> element still returns -1. 19990802 M9 build on Win98.
What seems to happen is:
 * TH.cellIndex is always -1
 * TD.cellIndex is the number of TD (but not TH) elements that occurred earlier
in the row.

Attaching additional testcase (based on previous).

Should this go to karnaze?
Assignee: vidur → karnaze
David's right - this should go to karnaze (especially since he's less doomed
than I am :-).
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed with 9/8/99 checkin.
Status: RESOLVED → VERIFIED
confirmed
marking verified
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: