mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
43
layout/reftests/table-dom/insertColgroupAndRowgroup.html
Normal file
43
layout/reftests/table-dom/insertColgroupAndRowgroup.html
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
|
||||
<style>
|
||||
colgroup#s { width: 200px; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function boom()
|
||||
{
|
||||
document.body.offsetHeight;
|
||||
|
||||
var last = document.getElementById("last");
|
||||
var parent = last.parentNode;
|
||||
|
||||
var colgroup = document.createElement("colgroup");
|
||||
colgroup.setAttribute("id", "s");
|
||||
parent.insertBefore(colgroup, last);
|
||||
|
||||
var newtbody = document.createElement("tbody");
|
||||
var newrow = document.createElement("tr");
|
||||
var newcell = document.createElement("td");
|
||||
newcell.appendChild(document.createTextNode("cell 1,1"));
|
||||
newrow.appendChild(newcell);
|
||||
newcell = document.createElement("td");
|
||||
newcell.appendChild(document.createTextNode("cell 1,2"));
|
||||
newrow.appendChild(newcell);
|
||||
newtbody.appendChild(newrow);
|
||||
parent.insertBefore(newtbody, last);
|
||||
|
||||
document.body.offsetHeight;
|
||||
document.documentElement.className = "";
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body onload="boom();">
|
||||
<table border="1">
|
||||
<colgroup></colgroup>
|
||||
<tbody id="last"><tr><td>cell 2,1</td><td>cell 2,2</td></tr></tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue