Attr
Interface Attr
- All Superinterfaces:
- Node
public interface Attr extends Node
The Attr
interface represents an attribute in an Element
object. Typically the allowable values for the attribute are defined in a schema associated with the document.
Attr
objects inherit the Node
interface, but since they are not actually child nodes of the element they describe, the DOM does not consider them part of the document tree. Thus, the Node
attributes parentNode
, previousSibling
, and nextSibling
have a null
value for Attr
objects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more effici