HTML5 parsing implies colgroup like IE

This commit is contained in:
Henri Sivonen 2009-05-18 17:02:34 +03:00
parent 1320a9bec8
commit 778bab7458
3 changed files with 6 additions and 6 deletions

View File

@ -4,9 +4,9 @@
<SCRIPT>
function doIt() {
var table = document.getElementsByTagName("TABLE")[0];
var colgroup = document.getElementsByTagName("COLGROUP")[0];
var col = document.getElementsByTagName("COL")[0];
table.removeChild(col);
colgroup.removeChild(col);
}
</SCRIPT>
</HEAD>

View File

@ -4,9 +4,9 @@
<SCRIPT>
function doIt() {
var table = document.getElementsByTagName("TABLE")[0];
var colgroup = document.getElementsByTagName("COLGROUP")[0];
var col = document.getElementsByTagName("COL")[1];
table.removeChild(col);
colgroup.removeChild(col);
}
</SCRIPT>
</HEAD>

View File

@ -4,9 +4,9 @@
<SCRIPT>
function doIt() {
var table = document.getElementsByTagName("TABLE")[0];
var colgroup = document.getElementsByTagName("COLGROUP")[0];
var col = document.getElementsByTagName("COL")[2];
table.removeChild(col);
colgroup.removeChild(col);
}
</SCRIPT>
</HEAD>