Class Attribute

XML DOM Attribute Interface.

See the Attr and Node interfaces.

Tables

Attribute.properties Properties of the Attribute class, beyond the Node class

Methods

Attribute:write (buffer) exports the XML.


Tables

Attribute.properties
Properties of the Attribute class, beyond the Node class

Fields:

  • name (string) the attribute name (readonly)
  • value (string) the contents of the attribute
  • nodeValue (string) same as field value (readonly)
  • ownerElement Element object this attribute belongs to (readonly)

Methods

Attribute:write (buffer)
exports the XML. This will only write the attribute itself, any required namespace definitions will be dealt with by the Element class.

Parameters:

  • buffer array an array to which the chunks can be added.

Returns:

    the buffer array
generated by LDoc 1.4.6 Last updated 2022-04-22 13:38:32