This function has been disabled and will always return `false`. `\DOMDocument::C14N` is an extremely slow and inefficient method to serialize DOM and never should be used. Documented to show difference from [`\DOMDocument`](https://www.php.net/manual/en/class.domdocument.php).
This function has been disabled and will always return `false`. `\DOMDocument::C14NFile` is an extremely slow and inefficient method to serialize DOM and never should be used. Documented to show difference from [`\DOMDocument`](https://www.php.net/manual/en/class.domdocument.php).
@ -11,7 +11,7 @@ Represents an entire HTML document; serves as the root of the document tree. Unl
<divclass="info"><p><strong>Info</strong> Only new methods and methods which make outward-facing changes from <ahref="https://www.php.net/manual/en/class.domdocument.php">\DOMDocument</a> will be documented here, otherwise they will be linked back to PHP's documentation.</p></div>
<dd>Encoding of the document, as specified when parsing or when determining encoding type. Use this instead of <ahref="https://php.net/manual/en/class.domdocument.php#domdocument.props.encoding"><code>\DOMDocument::encoding</code></a>.</dd>
This function has been disabled and will always return `false`. `\DOMNode::C14N` is an extremely slow and inefficient method to serialize DOM and never should be used.
This function has been disabled and will always return `false`. `\DOMNode::C14NFile` is an extremely slow and inefficient method to serialize DOM and never should be used.
Node::appendChild — Adds new child at the end of the children
## Description ##
```php
public Node::appendChild ( \DOMNode $node ) : \DOMNode|false
```
This function appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. [`Document::createElement()`](https://www.php.net/manual/en/domdocument.createelement.php), [`Document::createTextNode()`](https://www.php.net/manual/en/domdocument.createtextnode.php) etc. or simply by using any other node.
When using an existing node it will be moved.
<divclass="warning">
<p><strong>Warning</strong> Only the following element types may be appended to any node using <code>Node</code> and subject to hierarchy restrictions depending on the type of node being appended to:</p>
Allows nodes to walk down the DOM via a [`\Generator`](https://www.php.net/manual/en/class.generator.php).
Allows the extended PHP DOM classes to walk down the DOM via a [`\Generator`](https://www.php.net/manual/en/class.generator.php). This is in lieu of recreating the awful [DOM TreeWalker API](https://developer.mozilla.org/en-US/docs/Web/API/Treewalker).
<pre><codeclass="php">trait MensBeam\HTML\Walk {
public <ahref="Walk_walk.html">walk</a> ( <ahref="https://www.php.net/manual/en/class.closure.php">\Closure</a> $filter ) : <ahref="https://www.php.net/manual/en/class.generator.php">\Generator</a>
public <ahref="walk.html">walk</a> ( <ahref="https://www.php.net/manual/en/class.closure.php">\Closure</a> $filter ) : <ahref="https://www.php.net/manual/en/class.generator.php">\Generator</a>