Instance properties
This interface also inherits the properties of its parent interfaces, Node and EventTarget.
localNameRead only-
A string representing the local part of the qualified name of the attribute.
nameRead only-
The attribute's qualified name. If the attribute is not in a namespace, it will be the same as
localNameproperty. namespaceURIRead only-
A string representing the URI of the namespace of the attribute, or
nullif there is no namespace. ownerElementRead only-
The
Elementthe attribute belongs to. prefixRead only-
A string representing the namespace prefix of the attribute, or
nullif a namespace without prefix or no namespace are specified. specifiedRead only-
This property always returns
true. value-
The attribute's value, a string that can be set and get using this property.
Instance methods
This interface has no specific methods, but inherits the methods of its parent interfaces, Node and EventTarget.
Specifications
| Specification |
|---|
| DOM # interface-attr |
Browser compatibility
See also
- Other nodes are
CDATASection,CharacterData,Comment,Document,Element,ProcessingInstruction, andText.