layout/reftests/table-dom/insertCols1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/table-dom/insertCols1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<HEAD>
     1.5 +<SCRIPT src=tableDom.js>
     1.6 +</SCRIPT>
     1.7 +<SCRIPT>
     1.8 +
     1.9 +function doIt() {
    1.10 +  var refCol = document.getElementsByTagName("COL")[0];
    1.11 +  var col = document.createElement("COL", null);
    1.12 +  col.width = 100;
    1.13 +  refCol.parentNode.insertBefore(col, refCol);
    1.14 +  // HTML5 parser implies a colgroup around col, so this test 
    1.15 +  // case should really be XHTML
    1.16 +}
    1.17 +</SCRIPT>  
    1.18 +</HEAD>
    1.19 +<BODY onload="doIt()">
    1.20 +<table bgcolor=orange border>
    1.21 + <col width=200>
    1.22 + <col width=300>
    1.23 + <tr>
    1.24 +  <td>100</td><td>200</td><td>300</td>
    1.25 + </tr>
    1.26 +</table>
    1.27 +</BODY></HTML>
    1.28 +

mercurial