pull/72/head
Jeremy Benoist 4 years ago
parent 7da3eed512
commit 441c4ddfb2
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
  1. 1
      src/Readability.php

@ -265,6 +265,7 @@ class Readability implements LoggerAwareInterface
// without tidy the body can (sometimes) be wiped, so re-create it
try {
var_dump($this->body, property_exists($this->body, 'childNodes'), isset($this->body->childNodes));
if (!(property_exists($this->body, 'childNodes') && null !== $this->body->childNodes)) {
$this->body = $this->dom->createElement('body');
}

Loading…
Cancel
Save