(PHP 5, PHP 7, PHP 8)
$exclusive = false,$withComments = false,$xpath = null,$nsPrefixes = nullThe number of child elements.
First child element or null.
Last child element or null.
The next sibling element or null.
The previous sibling element or null.
Not implemented yet, always return null
The element name
A string representing the classes of the element separated by spaces.
Reflects the element ID through the "id" attribute.
| Версія | Опис |
|---|---|
| 8.3.0 | The className and id properties and the DOMElement::getAttributeNames(), DOMElement::insertAdjacentElement(), DOMElement::insertAdjacentText(), and DOMElement::toggleAttribute() methods have been added. |
| 8.0.0 | The firstElementChild, lastElementChild, childElementCount, previousElementSibling, and nextElementSibling properties have been added. |
| 8.0.0 | DOMElement implements DOMParentNode and DOMChildNode now. |
Зауваження:
Розширення DOM використовує кодування UTF-8. Обробляти інші кодування можна за допомогою mb_convert_encoding(), UConverter::transcode() або iconv().