Represents an entire HTML document; serves as the root of the document tree. Unlike the PHP [`\DOMDocument`](https://www.php.net/manual/en/class.domdocument.php) class in which it inherits from it cannot be used to represent an XML document. It is strictly used to represent HTML.
<divclass="admonition 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>
<divclass="admonition"><p><strong>Note:</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>
<divclass="admonition info"><p><strong>Info</strong> Only new methods and methods which make outward-facing changes from <ahref="https://www.php.net/manual/en/class.domelement.php">\DOMElement</a> will be documented here, otherwise they will be linked back to PHP's documentation.</p></div>
<divclass="admonition"><p><strong>Note:</strong> Only new methods and methods which make outward-facing changes from <ahref="https://www.php.net/manual/en/class.domelement.php">\DOMElement</a> will be documented here, otherwise they will be linked back to PHP's documentation.</p></div>