Attr
interface in package org.w3c.dom

    public interface Attr extends Node:

Node
└ Attr

DOM attribute node.

    import org.w3c.dom

    attr = document.createAttribute("name")
    attr.value = "value"

Attributes inherited from Node: ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | isId `isId as Boolean` | True when this attribute is known to be an element identifier.
public readonly property | name `name as String` | Qualified attribute name.
public readonly property | ownerElement `ownerElement as Element` | Element currently owning this attribute, or null.
public readonly property | schemaTypeInfo `schemaTypeInfo as TypeInfo` | Schema type information associated with this attribute.
public readonly property | specified `specified as Boolean` | True when the attribute value was explicitly specified.
public property | value `value as String` | Attribute textual value.

Properties inherited from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Methods inherited from Node: appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData