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>
Created attachment 1118 [details] Previous example had an error on the element in question <TH>..</TD>
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?
David's right - this should go to karnaze (especially since he's less doomed than I am :-).
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Fixed with 9/8/99 checkin.
confirmed marking verified
You need to log in before you can comment on or make changes to this bug.