diff --git a/src/Readability.php b/src/Readability.php index 9d92442..f15da11 100644 --- a/src/Readability.php +++ b/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'); }