summaryrefslogtreecommitdiff
path: root/src/HTMLParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTMLParser.php')
-rw-r--r--src/HTMLParser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php
index 851a367..7248da6 100644
--- a/src/HTMLParser.php
+++ b/src/HTMLParser.php
@@ -404,7 +404,7 @@ class HTMLParser
$topCandidate->firstChild->appendChild($import);
}
- $topCandidate = new Readability($topCandidate);
+ $topCandidate = new Readability($topCandidate->firstChild);
$topCandidate->initializeNode();
//TODO on the original code, $topCandidate is added to the page variable, which holds the whole HTML