PHP 8.4.2 Released!

The Dom\NamespaceInfo class

(PHP 8 >= 8.4.0)

简介

This represents immutable information about namespaces of an element. This decouples namespaces from attributes, which was incorrectly intertwined for the old DOM classes.

类摘要

final readonly class Dom\NamespaceInfo {
/* 属性 */
public ?string $prefix;
}

属性

prefix
The namespace prefix of the attribute.
namespaceURI
The namespace URI of the attribute.
element
The element that this namespace information is about.
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top