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

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/table/dom/appendColGroup1.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 cg = document.createElement("COLGROUP", null);
 
9
  cg.width=200
 
10
  var col = document.createElement("COL", null);
 
11
  cg.appendChild(col);
 
12
  col = document.createElement("COL", null);
 
13
  cg.appendChild(col);
 
14
  table.appendChild(cg);
 
15
}
 
16
</SCRIPT>  
 
17
</HEAD>
 
18
<BODY onload="doIt()">
 
19
The 2 tables should look the same
 
20
<table bgcolor=orange border>
 
21
 <colgroup>
 
22
  <col width=100>
 
23
 </colgroup>
 
24
 <tr>
 
25
  <td>col-100</td><td>cg-200</td><td>cg-200</td>
 
26
 </tr>
 
27
</table>
 
28
<BR>
 
29
<table bgcolor=orange border>
 
30
 <colgroup>
 
31
  <col width=100>
 
32
 </colgroup>
 
33
 <colgroup width=200>
 
34
  <col>
 
35
  <col>
 
36
 </colgroup>
 
37
 <tr>
 
38
  <td>col-100</td><td>cg-200</td><td>cg-200</td>
 
39
 </tr>
 
40
</table>
 
41
<BR>
 
42
</BODY></HTML>
 
43
 
 
44
 
 
45
 
 
46
 
 
47
 
 
48