The Dom\Attr class
Dom\Attr represents an attribute in the Dom\Element object.
Intro
Dom\Attr represents an attribute in the Dom\Element object.
This is the modern, spec-compliant equivalent of DOMAttr.
Class synopsis
Properties
namespaceURIThe namespace URI of the attribute.
prefixThe namespace prefix of the attribute.
localNameThe local name of the attribute.
nameThe qualified name of the attribute.
valueThe value of the attribute.
NoteUnlike the equivalent property in
DOMAttr, this does not substitute entities.ownerElementThe element that contains the attribute or null.
specifiedLegacy option, always is true.
See Also
- WHATWG specification of Attr
Attr