From: Maryana Rozhankivska Date: Wed, 9 Jul 2014 13:56:52 +0000 (+0300) Subject: fix of issue #619 and other similar, error in JSLikeHTMLElement: node no longer exists. X-Git-Tag: 1.7.1^2^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c1aad6d5746ddb079e3b60d432212021c42c963b;p=github%2Fwallabag%2Fwallabag.git fix of issue #619 and other similar, error in JSLikeHTMLElement: node no longer exists. --- diff --git a/inc/3rdparty/libraries/readability/Readability.php b/inc/3rdparty/libraries/readability/Readability.php index 9e77dc55..4fa3ba63 100755 --- a/inc/3rdparty/libraries/readability/Readability.php +++ b/inc/3rdparty/libraries/readability/Readability.php @@ -1142,9 +1142,9 @@ class Readability */ protected function reinitBody() { if (!isset($this->body->childNodes)) { - $this->body = $this->dom->createElement('body'); + $this->body = $this->dom->createElement('body'); + $this->body->innerHTML = $this->bodyCache; } - $this->body->innerHTML = $this->bodyCache; } }