1<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2<head>
3<script>
4
5function boom()
6{
7  var tr2 = document.getElementById('tr2');
8  var newTD = document.createElement('td');
9  newTD.setAttribute('colspan', 2);
10  newTD.appendChild(document.createTextNode('x'));
11  tr2.insertBefore(newTD, document.getElementById('b'));
12
13  document.getElementById('a').setAttribute('colspan', 1);
14  document.getElementById('b').setAttribute('colspan', 3);
15
16  document.documentElement.removeAttribute("class");
17}
18
19</script>
20</head>
21
22<body onload="setTimeout(boom, 250);">
23
24<table style="border-collapse: collapse;" border="1">
25  <tbody>
26    <tr>
27      <td id="a" colspan="3">A</td>
28    </tr>
29    <tr id="tr2">
30      <td id="b">B</td>
31    </tr>
32    <tr>
33      <td>C</td>
34    </tr>
35  </tbody>
36</table>
37
38</body>
39</html>
40