diff options
author | FiveFilters.org <[email protected]> | 2021-08-25 03:13:38 +0200 |
---|---|---|
committer | FiveFilters.org <[email protected]> | 2021-08-25 03:13:38 +0200 |
commit | 9c1c00e24cb6e06c8678abf8464e61713abfae8d (patch) | |
tree | 66670b9dc48150b9c3b81790108223f8ea6cb2b5 /src/Readability.php | |
parent | 4fe7aa2a39c12f9dd4bddc8699f76e9bc3eb4b4f (diff) |
Renamed nextElement to nextNode
https://github.com/mozilla/readability/commit/60af91f15387fcd5e60fe05212bf6fd1a2d9d36d
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Readability.php b/src/Readability.php index 1089769..5a7363d 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1188,7 +1188,7 @@ class Readability * or non-whitespace. This leaves behind the first <br> in the chain * (which will be replaced with a <p> later). */ - while (($next = NodeUtility::nextElement($next)) && ($next->nodeName === 'br')) { + while (($next = NodeUtility::nextNode($next)) && ($next->nodeName === 'br')) { $this->logger->debug('[PrepDocument] Removing chain of BR nodes...'); $replaced = true; @@ -1211,7 +1211,7 @@ class Readability while ($next) { // If we've hit another <br><br>, we're done adding children to this <p>. if ($next->nodeName === 'br') { - $nextElem = NodeUtility::nextElement($next->nextSibling); + $nextElem = NodeUtility::nextNode($next->nextSibling); if ($nextElem && $nextElem->nodeName === 'br') { break; } @@ -1628,7 +1628,7 @@ class Readability $this->_cleanExtraParagraphs($article); foreach (iterator_to_array($article->getElementsByTagName('br')) as $br) { - $next = NodeUtility::nextElement($br->nextSibling); + $next = NodeUtility::nextNode($br->nextSibling); if ($next && $next->nodeName === 'p') { $this->logger->debug('[PrepArticle] Removing br node next to a p node.'); $br->parentNode->removeChild($br); |