The Dom\Attr class
(PHP 8 >= 8.4.0)
Introduction
Dom\Attr represents an attribute in the Dom\Element object.
This is the modern, spec-compliant equivalent of DOMAttr.
Class synopsis
/* Inherited constants */
/* Properties */
/* Inherited properties */
/* Methods */
/* Inherited methods */
/* Not documented yet */
}Properties
- namespaceURI
- The namespace URI of the attribute.
- prefix
- The namespace prefix of the attribute.
- localName
- The local name of the attribute.
- name
- The qualified name of the attribute.
- value
- The value of the attribute.
Note: Unlike the equivalent property in DOMAttr, this does not substitute entities.
- ownerElement
- The element that contains the attribute or
null. - specified
- Legacy option, always is
true.
See Also
Table of Contents
- Dom\Attr::isId — Checks if attribute is a defined ID
- Dom\Attr::rename — Changes the qualified name or namespace of an attribute
↑ and ↓ to navigate • Enter to select • Esc to close • / to open