]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix of issue #619 and other similar, error in JSLikeHTMLElement: node no longer exists. 752/head
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>
Wed, 9 Jul 2014 13:56:52 +0000 (16:56 +0300)
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>
Wed, 9 Jul 2014 13:56:52 +0000 (16:56 +0300)
inc/3rdparty/libraries/readability/Readability.php

index 9e77dc55d198319da7df1a8774ab59ca24185b27..4fa3ba63d4d2aaadede82fc464dcb4e59392aee0 100755 (executable)
@@ -1142,9 +1142,9 @@ class Readability
         */\r
        protected function reinitBody() {\r
                if (!isset($this->body->childNodes)) {\r
-                       $this->body = $this->dom->createElement('body');\r
+                       $this->body = $this->dom->createElement('body');
+                       $this->body->innerHTML = $this->bodyCache;\r
                }\r
-               $this->body->innerHTML = $this->bodyCache;\r
        }
                
 }