(PHP 8 >= 8.4.0)
Represents an entire HTML or XML document; serves as the root of the document tree.
This is the modern, spec-compliant equivalent of DOMDocument. It is the base class for Dom\XMLDocument and Dom\HTMLDocument.
The DOMImplementation object that handles this document.
The Document Type Declaration associated with this document.
The location of the document or null
if undefined.
null
for document without elements.
First child element or null
.
Last child element or null
.
The number of child elements.
html
element that is either a
body
tag or a frameset
tag.
These need to be in the HTML namespace.
If no element matches, this evaluates to null
.
head
element that is a child of the
html
element.
These need to be in the HTML namespace.
If no element matches, this evaluates to null
.
title
element for HTML or the SVG title
element for SVG.
If there is no title, this evaluates to the empty string.