summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php
index f4f38ae..eadd50d 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -1460,7 +1460,9 @@ class Readability
$node = $DOMNodeList->item($length - 1 - $i);
// First check if we're in a data table, in which case don't remove us.
- if ($node->hasAncestorTag('table', -1) && $node->isReadabilityDataTable()) {
+ if ($node->hasAncestorTag('table', -1, function($node){
+ return $node->isReadabilityDataTable();
+ })) {
continue;
}