(PHP 8 >= 8.4.0)
The namespace URI of the element.
The namespace prefix of the element.
The local name of the element.
The HTML-uppercased qualified name of the element.
A string representing the classes of the element separated by spaces.
Returns an instance of Dom\TokenList to easily manage the classes on this element.
Returns an instance of Dom\NamedNodeMap that represents the attributes of this element.
Reflects the element ID through the "id" attribute.
First child element or null.
Last child element or null.
The number of child elements.
The previous sibling element or null.
The next sibling element or null.
A Dom\HTMLCollection containing all child elements of this node. Available as of PHP 8.5.0.
The inner HTML (or XML for XML documents) of the element.
The outer HTML (or XML for XML documents) of the element, including the element itself. Available as of PHP 8.5.0.
The node value with entity substitution enabled.
| Versione | Descrizione |
|---|---|
| 8.5.0 | Added the Dom\Element::getElementsByClassName() and Dom\Element::insertAdjacentHTML() methods. |
Nota:
L'estensione DOM usa la codifica UTF-8 quando si lavora con metodi o proprietà. I metodi del parser rilevano automaticamente la codifica o consentono al chiamante di specificarne una.