FluentDOM\DocumentFragment::appendElement PHP Method

appendElement() public method

Append an child element
public appendElement ( string $name, string $content = '', array $attributes = NULL ) : Element
$name string
$content string
$attributes array
return Element
    public function appendElement($name, $content = '', array $attributes = NULL)
    {
        $this->appendChild($node = $this->ownerDocument->createElement($name, $content, $attributes));
        return $node;
    }