Last updated

API / geotoolkit / report / dom / Attribute / Attribute

Class: Attribute

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.

Table of contents

Constructors
Accessors

Contents

Constructors

new Attribute(options)

new Attribute(options?)

Parameters

Name Type Description
Optional optionsstring | OptionsThe options
Accessors

localName

get localName(): string

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

Name

module:geotoolkit/report/dom/Attribute~Attribute#localName

Returns

string


name

get name(): string

The attribute's name.

Name

module:geotoolkit/report/dom/Attribute~Attribute#name

Returns

string


namespaceURI

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

Returns

string


nodeValue

get nodeValue(): string

The attribute's value.

Name

module:geotoolkit/report/dom/Attribute~Attribute#nodeValue

Returns

string


ownerElement

get ownerElement(): Node

The element holding the attribute.

Name

module:geotoolkit/report/dom/Attribute~Attribute#ownerElement

Returns

Node


prefix

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

Returns

string


specified

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

Returns

boolean


value

get value(): string

The attribute's value.

Name

module:geotoolkit/report/dom/Attribute~Attribute#value

Returns

string

set value(value): void

The attribute's value.

Name

module:geotoolkit/report/dom/Attribute~Attribute#value

Parameters

Name Type
valuestring

Returns

void