Document CreateElement - ThomasWeinert/FluentDOM GitHub Wiki
FluentDOM\DOM\Document::createElement
FluentDOM\Element createElement(
string $name [ , string $content = '' [ , array $attributes = NULL ]]
)
FluentDOM\Element createElement(
string $name [ , array $attributes = NULL ]
)
Extends the DOMDocument::createElement() method. It fixes the entity bug for the $content argument and allows to provide an array of attributes, too.
It uses the namespaces registered on the document to resolve namespace prefixes.