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

« back to all changes in this revision

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