src/audits/TableHasAppropriateHeaders.js
function tableDoesNotHaveHeaderRow(rows) {
        var headerRow = rows[0];

        var headerCells = headerRow.children;

        for (var i = 0; i < headerCells.length; i++) {
            if (headerCells[i].tagName != 'TH') {
                return true;
            }
        }
        return false;
    }
function tableDoesNotHaveHeaderRow(rows) {
        var headerRow = rows[0];

        var headerCells = headerRow.children;

        for (var i = 0; i < headerCells.length; i++) {
            if (headerCells[i].tagName != 'TH') {
                return true;
            }
        }
        return false;
    }
function tableDoesNotHaveHeaderRow ( rows ) { var headerRow = rows [ 0 ] ; var headerCells = headerRow . children ; for ( var i = 0 ; i < headerCells . length ; i ++ ) { if ( headerCells [ i ] . tagName != 'TH' ) { return true ; } } return false ; }
Checks for a header row in a table.

@param {NodeList} rows tr elements
@returns {boolean} Table does not have a complete header row
Checks for a header row in a table .