3 <title>Don't let appendChild break the table column count (bug
3702)
</title>
6 <p>Both rows should have the same width (
725px).
</p>
7 <table cellpadding=
"0" cellspacing=
"0" style=
"table-layout: fixed; width: 725px;">
18 <!-- reference rendering -->
19 <table cellpadding=
"0" cellspacing=
"0" style=
"table-layout: fixed; width: 725px;">
21 <td style=
"background-color: LawnGreen;">1</td>
22 <td style=
"background-color: Cyan;">2</td>
23 <td style=
"background-color: Yellow;">3</td>
24 <td style=
"background-color: Orange;">4</td>
30 firstRow
= document
.getElementById("first_row")
32 function addCell(color
) {
33 cell
= document
.createElement("td");
34 cell
.appendChild(document
.createTextNode("cell"));
35 cell
.setAttribute("style", "background-color: " + color
+ ";");
36 firstRow
.appendChild(cell
);