summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorFiveFilters.org <[email protected]>2021-08-17 16:02:56 +0200
committerFiveFilters.org <[email protected]>2021-08-17 16:02:56 +0200
commit731d21d80e885db262eb8d2ad787a290752d262b (patch)
tree48749d6e5f94930b443f786c81cbfa979be00914 /src/Readability.php
parentabc413822a719be660a0a57cc1db3b7970e9e7f6 (diff)
Fix table header missing
https://github.com/mozilla/readability/commit/9009f64f9ce8b7d593c1ef90864843f72e193cba
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Readability.php b/src/Readability.php
index 12d7af1..078663a 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -707,6 +707,7 @@ class Readability
if (
preg_match(NodeUtility::$regexps['unlikelyCandidates'], $matchString) &&
!preg_match(NodeUtility::$regexps['okMaybeItsACandidate'], $matchString) &&
+ !$node->hasAncestorTag( 'table') &&
$node->nodeName !== 'body' &&
$node->nodeName !== 'a'
) {