Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla / bugs / bug51727.html
blob761d0de37885e636458fb1ebbbcfa1905961e93a
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <style>
5 TD
7 border: 1px solid;
8 width:75px;
10 </style>
11 <script>
12 window.onload = windowLoad;
14 function windowLoad()
16 var newTable = document.createElement("table");
17 newTable.id = "newTable";
19 for(var y=0;y<1;y++)
22 var newRow = newTable.insertRow(y);
25 for( var x=0;x<1;x++)
28 var newCell = newRow.insertCell(x);
30 newCell.appendChild(document.createTextNode("r" + y + "c" + x));
33 document.body.appendChild(newTable);
34 modify();
35 insert();
38 function modify()
40 var t = document.getElementById("newTable");
42 var cell = t.rows[0].cells[0];
44 cell.firstChild.nodeValue = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
47 function insert()
49 var t = document.getElementById("newTable");
51 var cell = t.rows[0].cells[0];
53 cell.firstChild.nodeValue = "aa";
55 </script>
56 </head>
57 <body>
59 <form>
60 <input type="button" onclick="modify();" value="(1) Fill cell with long string"><br>
61 <input type="button" onclick="insert();" value="(2) Fill cell with short string"><br>
62 </form>
63 </body>
64 </html>