Opera: you may have to blur the window and focus it again to see changes in the layout of the table. I consider these redrawing problems a separate bug, not the direct result of the tested methods.
| TH in THead | TD in THead | TD in THead |
|---|---|---|
| TH in TBODY 1 | TD in TBODY 1 | TD in TBODY 1 |
| TD in TBODY 1 | TH in TBODY 1 | TD in TBODY 1 |
| TH in TBODY 2 | TD in TBODY 2 | TD in TBODY 2 |
| TD in TFoot | TH in TFoot | TD in TFoot |
function init () {
x = document.getElementsByTagName('table')[0];
newTD = document.createElement('td');
newTD.colSpan = 3;
newTD.appendChild(document.createTextNode('Generated TR'));
newTR = document.createElement('tr');
newTR.appendChild(newTD.cloneNode(true));
}
|
Test alert(x.createCaption().firstChild.nodeValue)
Test alert(x.createTFoot().childNodes.length)
Test alert(x.createTHead().childNodes.length) |
The tests with
Test x.rows[1].deleteCell(0)
Test x.tBodies[0].deleteRow(1)
Test x.rows[1].insertCell(0) Test x.moveRow(0,3) |