(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.
注意:
此 DOM 扩展在处理方法或属性时使用 UTF-8 编码。 解析器方法会自动检测编码,或允许调用者指定编码。