private function addHtmlElementIfMissing(): bool
    {
        if ($this->getElementsByTagName('html')->length === 0) {
            if (!isset(self::$newObjectsCache['htmlelement'])) {
                self::$newObjectsCache['htmlelement'] = new \DOMElement('html');
            }
            $this->appendChild(clone(self::$newObjectsCache['htmlelement']));
            return true;
        }
        return false;
    }
private function addHtmlElementIfMissing(): bool
    {
        if ($this->getElementsByTagName('html')->length === 0) {
            if (!isset(self::$newObjectsCache['htmlelement'])) {
                self::$newObjectsCache['htmlelement'] = new \DOMElement('html');
            }
            $this->appendChild(clone(self::$newObjectsCache['htmlelement']));
            return true;
        }
        return false;
    }
private function addHtmlElementIfMissing ( ) : bool { if ( $ this -> getElementsByTagName ( 'html' ) -> length === 0 ) { if ( ! isset ( self :: $ newObjectsCache [ 'htmlelement' ] ) ) { self :: $ newObjectsCache [ 'htmlelement' ] = new \ DOMElement ( 'html' ) ; } $ this -> appendChild ( clone ( self :: $ newObjectsCache [ 'htmlelement' ] ) ) ; return true ; } return false ; }
Adds the HTML tag to the document if missing.

@return boolean TRUE on success, FALSE otherwise.
Adds the HTML tag to the document if missing .