axe-core
Version:
Accessibility engine for automated Web UI testing
14 lines (12 loc) • 334 B
JavaScript
/* global table */
/**
* Determine if a `HTMLTableCellElement` is a row header
* @method isRowHeader
* @memberof axe.commons.table
* @instance
* @param {HTMLTableCellElement} cell The table cell to test
* @return {Boolean}
*/
table.isRowHeader = function (cell) {
return (['row', 'auto'].includes(table.getScope(cell)));
};