From 46ada6d063648ef2d1b1bbb5e9b1e56cd179cdab Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Wed, 25 Aug 2021 02:54:15 +0200 Subject: Update Readability.php --- src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Readability.php') diff --git a/src/Readability.php b/src/Readability.php index cfd3c44..2027db3 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -639,7 +639,7 @@ class Readability $node = $article; while ($node) { - if ($node->parentNode && in_array($node->tagName, ['div', 'section']) && !($node->hasAttribute('id') && strpos($node->getAttribute('id'), 'readability') === 0)) { + if ($node->parentNode && in_array($node->nodeName, ['div', 'section']) && !($node->hasAttribute('id') && strpos($node->getAttribute('id'), 'readability') === 0)) { if ($node->isElementWithoutContent()) { $node = NodeUtility::removeAndGetNext($node); continue; -- cgit v1.2.3