public/javascripts/yui/datatable/datatable.js
function(elContainer) {
    if(elContainer) {
        // Destroy previous
        this._destroyTableEl();
    
        // Create TABLE
        this._elTable = elContainer.appendChild(document.createElement("table"));  
         
        // Set SUMMARY attribute
        this._elTable.summary = this.get("summary");
        
        // Create CAPTION element
        if(this.get("caption")) {
            this._initCaptionEl(this.get("caption"));
        }
    } 
}
function(elContainer) {
    if(elContainer) {
        // Destroy previous
        this._destroyTableEl();
    
        // Create TABLE
        this._elTable = elContainer.appendChild(document.createElement("table"));  
         
        // Set SUMMARY attribute
        this._elTable.summary = this.get("summary");
        
        // Create CAPTION element
        if(this.get("caption")) {
            this._initCaptionEl(this.get("caption"));
        }
    } 
}
function ( elContainer ) { if ( elContainer ) { // Destroy previous this . _destroyTableEl ( ) ; // Create TABLE this . _elTable = elContainer . appendChild ( document . createElement ( "table" ) ) ; // Set SUMMARY attribute this . _elTable . summary = this . get ( "summary" ) ; // Create CAPTION element if ( this . get ( "caption" ) ) { this . _initCaptionEl ( this . get ( "caption" ) ) ; } } }
Creates HTML markup for TABLE, COLGROUP, THEAD and TBODY elements in outer
container element.

@method _initTableEl
@param elContainer {HTMLElement} Container element into which to create TABLE.
@private
Creates HTML markup for TABLE COLGROUP THEAD and TBODY elements in outer container element .