protected function reinitBody() { if (!isset($this->body->childNodes)) { $this->body = $this->dom->createElement('body'); $this->body->innerHTML = $this->bodyCache; } }