Attr

Overview

The Attr interface represents one of a DOM element's attributes as an object. In most DOM methods, you will directly retrieve the attribute as a string (e.g., Element.getAttribute()), but certain functions (e.g., Element.getAttributeNode()) or means of iterating return Attr types.

Location

Properties


localName

 

property localName: String read;

 

String localName { get; }

 

var localName: String { get{} }

 

String localName { __get; }

 

ReadOnly Property localName() As String

name

 

property name: String read;

 

String name { get; }

 

var name: String { get{} }

 

String name { __get; }

 

ReadOnly Property name() As String

namespaceURI

 

property namespaceURI: String read;

 

String namespaceURI { get; }

 

var namespaceURI: String { get{} }

 

String namespaceURI { __get; }

 

ReadOnly Property namespaceURI() As String

ownerElement

 

property ownerElement: Element read;

 

Element ownerElement { get; }

 

var ownerElement: Element { get{} }

 

Element ownerElement { __get; }

 

ReadOnly Property ownerElement() As Element

prefix

 

property prefix: String read;

 

String prefix { get; }

 

var prefix: String { get{} }

 

String prefix { __get; }

 

ReadOnly Property prefix() As String

specified

 

property specified: Boolean read;

 

Boolean specified { get; }

 

var specified: Boolean { get{} }

 

Boolean specified { __get; }

 

ReadOnly Property specified() As Boolean

value

 

property value: String read write;

 

String value { get; set; }

 

var value: String { get{} set{} }

 

String value { __get; __set; }

 

Property value() As String