Skip to content

Commit

Permalink
review last
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Mar 31, 2020
1 parent 9ce1667 commit 93d6f34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/checks/tables/td-headers-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cells.forEach(cell => {
return;
}

const headersAttr = cell.getAttribute('headers');
const headersAttr = cell.getAttribute('headers').trim();
if (!headersAttr) {
return reviewCells.push(cell);
}
Expand All @@ -48,14 +48,14 @@ cells.forEach(cell => {
}
});

if (reviewCells.length) {
this.relatedNodes(reviewCells);
return undefined;
}

if (badCells.length > 0) {
this.relatedNodes(badCells);
return false;
}

if (reviewCells.length) {
this.relatedNodes(reviewCells);
return undefined;
}

return true;

0 comments on commit 93d6f34

Please sign in to comment.