DOMNode $node:
DOMDocumentFragment $fragment:
Boolean
protected final function appendDocumentFragment($node, $fragment) {
if ($fragment instanceof \DOMDocumentFragment) {
$node
->appendChild($fragment);
return true;
}
return false;
}