Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla / bugs / bug9271-2.html
blobf6fe693d4cf937b33717d62376cd87760a9cf17a
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2 <html>
3 <head>
4 <title>Table element insertion bugs - insertCell()</title>
5 </head>
6 <body>
8 <h1>insertCell() bugs, 0 based</h1>
10 <table border>
11 <tbody>
12 <tr id="touse">
13 <td>
14 This is just dummy text.
15 </td>
16 </tr>
17 </tbody>
18 </table>
20 <script type="text/javascript">
23 var touse = document.getElementById("touse");
25 while (touse.hasChildNodes() ) {
26 touse.removeChild(touse.firstChild);
29 /* i could be 0 or 1 - whatever is first ends up at the end */
30 for ( var i = 0 ; i < 6; i++ ) {
31 var newcell = touse.insertCell(i);
32 newcell.appendChild(
33 document.createTextNode("This is cell number " + i + ".")
38 </script>
40 </body>
41 </html>