layout/reftests/table-dom/insertCols5.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <HEAD>
     2 <SCRIPT src=tableDom.js>
     3 </SCRIPT>
     4 <SCRIPT>
     6 function doIt() {
     7   var cg = document.getElementsByTagName("COLGROUP")[0];
     8   var refCol = document.getElementsByTagName("COL")[1];
     9   var col = document.createElement("COL", null);
    10   col.width = 200;
    11   cg.insertBefore(col, refCol);
    12 }
    13 </SCRIPT>  
    14 </HEAD>
    15 <BODY onload="doIt()">
    16 <table bgcolor=orange border>
    17  <colgroup>
    18   <col width=100>
    19   <col width=300>
    20  </colgroup>
    21  <tr>
    22   <td>100</td><td>200</td><td>300</td>
    23  </tr>
    24 </table>
    25 </BODY></HTML>

mercurial