(PHP 8 >= 8.4.0)
This is the modern, spec-compliant equivalent of DOMNode.
DOMNode::DOCUMENT_POSITION_DISCONNECTED
DOMNode::DOCUMENT_POSITION_PRECEDING
DOMNode::DOCUMENT_POSITION_FOLLOWING
DOMNode::DOCUMENT_POSITION_CONTAINS
DOMNode::DOCUMENT_POSITION_CONTAINED_BY
DOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Gets the type of the node. One of the predefined XML_*_NODE constants
The absolute base URI of this node or null if the implementation
wasn't able to obtain an absolute URI.
Whether the node is connected to a document
null if this node is a document.
The parent of this node. If there is no such node, this returns null.
The parent element of this element. If there is no such element, this returns null.
The first child of this node. If there is no such node, this
returns null.
The last child of this node. If there is no such node, this returns null.
The node immediately preceding this node. If there is no such
node, this returns null.
The node immediately following this node. If there is no such
node, this returns null.
The text content of this node and its descendants.
注意: 此 DOM 扩展在处理方法或属性时使用 UTF-8 编码。 解析器方法会自动检测编码,或允许调用者指定编码。