~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/table/dom/appendTbodyExpand1.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HEAD>
 
2
<SCRIPT src=tableDom.js>
 
3
</SCRIPT>
 
4
<SCRIPT>
 
5
 
 
6
function doIt() {
 
7
  var table = document.getElementsByTagName("TABLE")[0];
 
8
  var rg = document.createElement("TBODY", null);
 
9
  var row = document.createElement("TR");
 
10
  appendCell(row, 1, 1);
 
11
  appendCell(row, 1, 1);
 
12
  rg.appendChild(row);
 
13
  table.appendChild(rg);
 
14
}
 
15
</SCRIPT>  
 
16
</HEAD>
 
17
<BODY onload="doIt()">
 
18
The 2 tables should look the same
 
19
<table bgcolor=orange border>
 
20
 <tbody>
 
21
   <tr>
 
22
    <td>c11</td><td>c12</td>
 
23
  </tr>
 
24
 </tbody>
 
25
</table>
 
26
<BR>
 
27
<table bgcolor=orange border>
 
28
 <tbody>
 
29
   <tr>
 
30
    <td>c11</td><td>c12</td>
 
31
  </tr>
 
32
 </tbody>
 
33
 <tbody>
 
34
   <tr>
 
35
    <td>X1</td><td>X2</td>
 
36
  </tr>
 
37
 </tbody>
 
38
</table>
 
39
<BR>
 
40
</BODY></HTML>
 
41
 
 
42
 
 
43
 
 
44
 
 
45
 
 
46