We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 002cfef commit 37e795bCopy full SHA for 37e795b
src/Readability.php
@@ -1231,11 +1231,6 @@ protected function grabArticle(\DOMElement $page = null)
1231
$parentOfTopCandidate = $topCandidate->parentNode;
1232
$siblingNodes = $parentOfTopCandidate->childNodes;
1233
1234
- if (0 === $siblingNodes->length) {
1235
- $siblingNodes = new \stdClass();
1236
- $siblingNodes->length = 0;
1237
- }
1238
-
1239
for ($s = 0, $sl = $siblingNodes->length; $s < $sl; ++$s) {
1240
$siblingNode = $siblingNodes->item($s);
1241
$siblingNodeName = $siblingNode->nodeName;
0 commit comments