UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

10 lines (8 loc) 294 B
var table = axe.commons.table.toGrid(node); var firstRow = table[0]; if (table.length <= 1 || firstRow.length <= 1 || node.rows.length <= 1) { return true; } return firstRow.reduce(function (out, curr, i) { return (out || (curr !== firstRow[i+1] && firstRow[i+1] !== undefined)); }, false);