API / geotoolkit / report / dom / Attribute / Attribute
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.
Constructors
Constructors
• new Attribute(options?)
| Name | Type | Description |
|---|---|---|
Optional options | string | Options | The options |
Accessors
• get localName(): string
A string representing the local part of the qualified name of the attribute.
Name
module:geotoolkit/report/dom/Attribute~Attribute#localName
string
• get name(): string
The attribute's name.
Name
module:geotoolkit/report/dom/Attribute~Attribute#name
string
• get namespaceURI(): string
A string representing the namespace URI of the attribute, or null if there is no namespace.
Name
module:geotoolkit/report/dom/Attribute~Attribute#namespaceURI
string
• get nodeValue(): string
The attribute's value.
Name
module:geotoolkit/report/dom/Attribute~Attribute#nodeValue
string
• get ownerElement(): Node
The element holding the attribute.
Name
module:geotoolkit/report/dom/Attribute~Attribute#ownerElement
• get prefix(): string
A string representing the namespace prefix of the attribute, or null if no prefix is specified.
Name
module:geotoolkit/report/dom/Attribute~Attribute#prefix
string
• get specified(): boolean
This property always returns true. Originally, it returned true if the attribute was explicitly specified in the source code or by a script, and false if its value came from the default one defined in the document's DTD.
Name
module:geotoolkit/report/dom/Attribute~Attribute#specified
boolean
• get value(): string
The attribute's value.
Name
module:geotoolkit/report/dom/Attribute~Attribute#value
string
• set value(value): void
The attribute's value.
Name
module:geotoolkit/report/dom/Attribute~Attribute#value
| Name | Type |
|---|---|
value | string |
void