summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorFiveFilters.org <[email protected]>2021-08-25 02:54:15 +0200
committerFiveFilters.org <[email protected]>2021-08-25 02:54:15 +0200
commit46ada6d063648ef2d1b1bbb5e9b1e56cd179cdab (patch)
tree7578f9398cd02356b77f012bd47776c1aec7102a /src/Readability.php
parent5f0dc93085202cd68568adc78c8216966ceaedd8 (diff)
Update Readability.php
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php2
1 files changed, 1 insertions, 1 deletions
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;