4 https://bugzilla.mozilla.org/show_bug.cgi?id=1297
7 <title>Test for Bug
1297</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1297">Mozilla Bug
1297</a>
15 <div id=
"content" style=
"display: none">
18 <td id=
"td1" onmousedown=
"alert(this.cellIndex)">cellIndex=
0</td>
19 <td id=
"td2" onmousedown=
"alert(this.cellIndex)">cellIndex=
1</td>
20 <td id=
"td3" onmousedown=
"alert(this.cellIndex)">cellIndex=
2</td>
22 onmousedown=
"alert(this.rowIndex)"><td>rowIndex=
1<td>rowIndex=
1<td>rowIndex=
1</t
25 onmousedown=
"alert(this.rowIndex)"><td>rowIndex=
2<td>rowIndex=
2<td>rowIndex=
2</t
31 <script class=
"testbody" type=
"text/javascript">
33 /** Test for Bug
1297 **/
34 is($('td1').cellIndex,
0,
"cellIndex / rowIndex working td1");
35 is($('td2').cellIndex,
1,
"cellIndex / rowIndex working td2");
36 is($('td3').cellIndex,
2,
"cellIndex / rowIndex working td3");
37 is($('tr1').rowIndex,
1,
"cellIndex / rowIndex working tr1");
38 is($('tr2').rowIndex,
2,
"cellIndex / rowIndex working tr2");