The DOMAttr class
DOMAttr represents an attribute in the DOMElement object.
Intro
DOMAttr represents an attribute in the DOMElement object.
Class synopsis
Properties
nameThe name of the attribute.
ownerElementThe element which contains the attribute or null.
schemaTypeInfoNot implemented yet, always is null.
specifiedNot implemented yet, always is true.
valueThe value of the attribute.
NoteNote, XML entities are expanded upon setting a value. Thus the
&character has a special meaning. Settingvalueto itself will fail whenvaluecontains an&. To avoid entity expansion, useDOMElement::setAttributeinstead.
See Also
- W3C specification of Attr
Domattr