Attributes

The Attributes string object builds an immutablearrow-up-right list of attributes in original insertion order where attribute comes in form name="value".

Instance accessors

Attributes.prototype.
Description

attribute

The getarrow-up-right accessor attribute gets the attributes in an object form, where the key is the attribute name.

attributes

The getarrow-up-right accessor returns the attributes in an array form.

value

The getarrow-up-right accessor gets the attribute list, the primitive value of a specified Attributes object.

Static methods

Attributes.
Description

template()

The "tag" static method builds the attribute list.

Instance methods

Attributes.prototype.
Description

get()

Gets the attribute of a specified name.

getAll()

Gets the attributes in an array form.

getAttributes()

Gets the attributes in an array form.

has()

Checks whether the attribute of a specified name exists in an Attributes object.

toObject()

Gets the attributes in an object form, where the key is the attribute name.

toString()

Gets the attribute list, the primitive value of a specified Attributes object.

valueOf()

Gets the attribute list, the primitive value of a specified Attributes object.

Last updated