The Dom\NamespaceInfo class

Introduction

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

Class synopsis

final readonly Dom\NamespaceInfo
/* Properties */
public stringnull $prefix;
public stringnull $namespaceURI;
public Dom\Element $element;

Properties

prefix
The namespace prefix of the attribute.
namespaceURI
The namespace URI of the attribute.
element
The element that this namespace information is about.