public function createInsertTarget(string $name)
    {
        if (!$this->loaded) {
            $this->loadHTML('');
        }
        $element = $this->createElement('html5-dom-document-insert-target');
        $element->setAttribute('name', $name);
        return $element;
    }
public function createInsertTarget(string $name)
    {
        if (!$this->loaded) {
            $this->loadHTML('');
        }
        $element = $this->createElement('html5-dom-document-insert-target');
        $element->setAttribute('name', $name);
        return $element;
    }
public function createInsertTarget ( string $ name ) { if ( ! $ this -> loaded ) { $ this -> loadHTML ( '' ) ; } $ element = $ this -> createElement ( 'html5-dom-document-insert-target' ) ; $ element -> setAttribute ( 'name' , $ name ) ; return $ element ; }
Creates an element that will be replaced by the new body in insertHTML.

@param string $name The name of the insert target.
@return HTML5DOMElement A new DOMElement that must be set in the place where the new body will be inserted.
Creates an element that will be replaced by the new body in insertHTML .