MDN Web Docs

Instance properties

This interface also inherits the properties of its parent interfaces, Node and EventTarget.

localName Read only

A string representing the local part of the qualified name of the attribute.

name Read only

The attribute's qualified name. If the attribute is not in a namespace, it will be the same as localName property.

namespaceURI Read only

A string representing the URI of the namespace of the attribute, or null if there is no namespace.

ownerElement Read only

The Element the attribute belongs to.

prefix Read only

A string representing the namespace prefix of the attribute, or null if a namespace without prefix or no namespace are specified.

specified Read 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

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗