Element
interface in package org.w3c.dom

    public interface Element extends Node:

Node
└ Element

DOM element node.

    import org.w3c.dom

    element as Element = document.createElement("item")
    element.setAttribute("id", "42")

Inherited Attributes
attribute Inherited Attributes 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 | schemaTypeInfo `schemaTypeInfo as TypeInfo` | Schema type information associated with this element.
public readonly property | tagName `tagName as String` | Qualified element tag name.

Inherited Properties
property Inherited Properties from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getAttribute `getAttribute(name as String) as String` | Returns an attribute value by name.
public | getAttributeNS `getAttributeNS(namespaceURI as String, localName as String) as String throws DOMException` | Returns an attribute value by namespace URI and local name.
public | getAttributeNode `getAttributeNode(name as String) as Attr` | Returns an attribute node by name.
public | getAttributeNodeNS `getAttributeNodeNS(namespaceURI as String, localName as String) as Attr throws DOMException` | Returns a namespace-aware attribute node.
public | getElementsByTagName `getElementsByTagName(name as String) as NodeList` | Returns descendant elements matching the tag name.
public | getElementsByTagNameNS `getElementsByTagNameNS(namespaceURI as String, localName as String) as NodeList throws DOMException` | Returns descendant elements matching namespace URI and local name.
public | hasAttribute `hasAttribute(name as String) as Boolean` | Indicates whether an attribute exists by name.
public | hasAttributeNS `hasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException` | Indicates whether a namespace-aware attribute exists.
public | removeAttribute `removeAttribute(name as String) as Void throws DOMException` | Removes an attribute by name.
public | removeAttributeNS `removeAttributeNS(namespaceURI as String, localName as String) as Void throws DOMException` | Removes a namespace-aware attribute.
public | removeAttributeNode `removeAttributeNode(oldAttr as Attr) as Attr throws DOMException` | Removes an attribute node.
public | setAttribute `setAttribute(name as String, value as String) as Void throws DOMException` | Sets or creates an attribute by name.
public | setAttributeNS `setAttributeNS(namespaceURI as String, qualifiedName as String, value as String) as Void throws DOMException` | Sets or creates a namespace-aware attribute.
public | setAttributeNode `setAttributeNode(newAttr as Attr) as Attr throws DOMException` | Adds or replaces an attribute node.
public | setAttributeNodeNS `setAttributeNodeNS(newAttr as Attr) as Attr throws DOMException` | Adds or replaces a namespace-aware attribute node.
public | setIdAttribute `setIdAttribute(name as String, isId as Boolean) as Void throws DOMException` | Marks an attribute as an identifier attribute.
public | setIdAttributeNS `setIdAttributeNS(namespaceURI as String, localName as String, isId as Boolean) as Void throws DOMException` | Marks a namespace-aware attribute as an identifier attribute.
public | setIdAttributeNode `setIdAttributeNode(idAttr as Attr, isId as Boolean) as Void throws DOMException` | Marks an attribute node as an identifier attribute.

Inherited Methods
method Inherited Methods from Node: appendChild, cloneNode, compareDocumentPosition, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData