repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
table
/
cellindex.html
blob
7d2faac585783145283106c38719f81fe04c86b9
1
<table>
2
<th
id
=
"h1"
>
Header
1
</td>
3
<td
id
=
"c1"
>
Cell
1
</td>
4
<script>
</script>
5
<td
id
=
"c2"
>
Cell
2
</td>
6
</table>
7
8
<script>
9
function
outputIndex
(
name
) {
10
node
=
document
.
getElementById
(
name
);
11
document
.
writeln
(
name
+
" has index "
+
node
.
cellIndex
+
"<br>"
);
12
}
13
14
outputIndex
(
"h1"
);
15
outputIndex
(
"c1"
);
16
outputIndex
(
"c2"
);
17
</script>