layout/reftests/table-dom/insertColgroupAndRowgroup.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.)

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3
michael@0 4 <style>
michael@0 5 colgroup#s { width: 200px; }
michael@0 6 </style>
michael@0 7
michael@0 8 <script>
michael@0 9 function boom()
michael@0 10 {
michael@0 11 document.body.offsetHeight;
michael@0 12
michael@0 13 var last = document.getElementById("last");
michael@0 14 var parent = last.parentNode;
michael@0 15
michael@0 16 var colgroup = document.createElement("colgroup");
michael@0 17 colgroup.setAttribute("id", "s");
michael@0 18 parent.insertBefore(colgroup, last);
michael@0 19
michael@0 20 var newtbody = document.createElement("tbody");
michael@0 21 var newrow = document.createElement("tr");
michael@0 22 var newcell = document.createElement("td");
michael@0 23 newcell.appendChild(document.createTextNode("cell 1,1"));
michael@0 24 newrow.appendChild(newcell);
michael@0 25 newcell = document.createElement("td");
michael@0 26 newcell.appendChild(document.createTextNode("cell 1,2"));
michael@0 27 newrow.appendChild(newcell);
michael@0 28 newtbody.appendChild(newrow);
michael@0 29 parent.insertBefore(newtbody, last);
michael@0 30
michael@0 31 document.body.offsetHeight;
michael@0 32 document.documentElement.className = "";
michael@0 33 }
michael@0 34 </script>
michael@0 35
michael@0 36 </head>
michael@0 37 <body onload="boom();">
michael@0 38 <table border="1">
michael@0 39 <colgroup></colgroup>
michael@0 40 <tbody id="last"><tr><td>cell 2,1</td><td>cell 2,2</td></tr></tbody>
michael@0 41 </table>
michael@0 42 </body>
michael@0 43 </html>

mercurial