add(DOMNodeList|DOMNode|array|string|null $node)
Adds a node to the current list of nodes. This method uses the appropriate specialized add*() method based on the type of the argument.
Parameters
DOMNodeList|DOMNode|array|string|null $node A node Exceptions InvalidArgumentException When node is not the expected type.