UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

16 lines (13 loc) 363 B
import getScope from './get-scope'; /** * 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} */ function isRowHeader(cell) { return ['row', 'auto'].includes(getScope(cell)); } export default isRowHeader;