Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (43 sloc) 2.07 KB

colgroup - DOM interface API

The colgroup element

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.

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 $

Something went wrong with that request. Please try again.