diff options
Diffstat (limited to 'src/HTMLParser.php')
-rw-r--r-- | src/HTMLParser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 6e77e3f..9aa9974 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -125,7 +125,7 @@ class HTMLParser $this->metadata['title'] = $this->getTitle(); // Checking for minimum HTML to work with. - if (!($root = $this->dom->getElementsByTagName('body')->item(0))) { + if (!($root = $this->dom->getElementsByTagName('body')->item(0)) || !$root->firstChild) { return false; } |