Skip to content

Commit

Permalink
Do not skip empty table rows. Fix domchristie#276.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Bartoš committed Mar 16, 2020
1 parent 4e36b45 commit 32fdf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Node (node) {

function isBlank (node) {
return (
['A', 'TH', 'TD', 'IFRAME', 'SCRIPT', 'AUDIO', 'VIDEO'].indexOf(node.nodeName) === -1 &&
['A', 'THEAD', 'TBODY', 'TR', 'TH', 'TD', 'IFRAME', 'SCRIPT', 'AUDIO', 'VIDEO'].indexOf(node.nodeName) === -1 &&
/^\s*$/i.test(node.textContent) &&
!isVoid(node) &&
!hasVoid(node)
Expand Down

0 comments on commit 32fdf01

Please sign in to comment.