RetroZilla/layout/html/tests/table/interactive/bug9043.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<HTML><HEAD><TITLE>test</TITLE>
<SCRIPT>
function debugOutput (t) {
document.forms[0].txtdisp.value = t;
}
w.document.writeln(t + '<HR>');}
</SCRIPT>
</HEAD>
<BODY>
Click on a cell to display cell index (bug causes 1st one to be -1)
<TABLE>
<THEAD><TR>
<TH ONCLICK="debugOutput('TH ' + event.type + ': ' + this.cellIndex);">Name</TH>
</TR></THEAD>
<TBODY><TR>
<TD ONCLICK="debugOutput('TD ' + event.type + ': ' + this.cellIndex);">Kibo</TD>
</TR></TBODY>
</TABLE>
<FORM><INPUT TYPE="TEXT" NAME="txtdisp"></FORM>
<BR>
Click on a cell to display cell index (bug causes 2nd, 4th to be -1)
<TABLE>
<TBODY><TR>
<TD ONCLICK="debugOutput('TD 1 ' + event.type + ': ' + this.cellIndex);">Cell</TD>
<TH ONCLICK="debugOutput('TH 2 ' + event.type + ': ' + this.cellIndex);">Cell</TH>
<TD ONCLICK="debugOutput('TD 3 ' + event.type + ': ' + this.cellIndex);">Cell</TD>
<TH ONCLICK="debugOutput('TH 4 ' + event.type + ': ' + this.cellIndex);">Cell</TH>
<TD ONCLICK="debugOutput('TD 5 ' + event.type + ': ' + this.cellIndex);">Cell</TD>
</TR></TBODY>
</TABLE>
<FORM><INPUT TYPE="TEXT" NAME="txtdisp"></FORM>
</BODY>
</HTML>