XMLDOMElement class

XML-based implementation of DOMElement.

Inheritance
Implemented types

Properties

childNodes List<DOMNode>
List of child nodes.
no setterinherited
children List<DOMElement>
Gets child elements (excludes text nodes).
no setteroverride
firstElementChild DOMElement?
Gets the first child element.
no setteroverride
hasChildNodes bool
Whether this node has child nodes.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID attribute of this element (null for non-elements).
no setterinherited
innerHTML String
Gets the inner HTML content (for elements).
no setterinherited
lastElementChild DOMElement?
Gets the last child element.
no setteroverride
nextElementSibling DOMElement?
Gets the next sibling element.
no setteroverride
nodeType DOMNodeType
The type of this node.
no setterinherited
nodeValue String?
The text content of this node (for text nodes).
no setterinherited
outerHTML String
Gets the outer HTML content including the element itself.
no setterinherited
parentNode DOMNode?
The parent node, or null if this is the root.
no setterinherited
previousElementSibling DOMElement?
Gets the previous sibling element.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagName String?
The tag name of this element (null for non-elements).
no setterinherited
textContent String
Gets the text content of this node and all descendants.
no setterinherited

Methods

getAttribute(String name) String?
Gets an attribute value by name.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
querySelector(String selector) DOMElement?
Finds the first descendant element matching the selector.
override
querySelectorAll(String selector) List<DOMElement>
Finds all descendant elements matching the selector.
override
setAttribute(String name, String value) → void
Sets an attribute value.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited