layout/reftests/table-dom/insertCols1.html

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

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

mercurial