From 441c4ddfb27cf1cd599d30085fd2098f0b632845 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 4 Feb 2022 13:38:06 +0100 Subject: [PATCH] debug --- src/Readability.php | 1 + 1 file changed, 1 insertion(+) 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'); }