colgroup - DOM interface API
Current
interface HTMLTableColElement : HTMLElement {
attribute unsigned long span;
};
Table Usability
interface HTMLTableGroupElement : HTMLElement {
readonly attribute HTMLCollection vectors;
readonly attribute HTMLCollection headers;
readonly attribute DOMString scope;
readonly attribute long level;
};
interface HTMLTableColgroupElement : HTMLTableGroupElement {
readonly attribute long start;
readonly attribute long end;
}
Idea Behind
The colgroup would be used in the same intention of the row group (thead, tbody, tfoot).
FYI - The table parser are able to determine 3 kind of colgroup.
- Header colgroup : Same concept of a
theadrow group but for column - Data colgroup: Same concept of a
tbodyrow group but for column - Summary colgroup: Same concept of a
tfootrow group but for column
That allow to build a responsive web design for complex tables. In general, summary group (computed data eg. total, sub-total) is smaller than the data (raw) and both could be considerate equivalent. That can allow the possibility to shrink the table size by providing a mechanism to expand the data. I am currently thinking of implementing the responsive web design like a treegrid.
Table Parser - WET 3.0 release
jQuery.data tblparser {
array col;
jQuery elem;
long end;
groupZero {
// Reference to the structure attached to the table element
};
array header;
long level;
array parentHeader;
string parentHeader;
long start;
long type;
long uid;
}
HTML5 specification refer to the Editor's Draft dated of September 21 2012, $Revision 1.1998 $