Element class
is the most general base class from which all element objects
(i.e. objects that represent elements) in a Document inherit.
It only has methods and properties common to all kinds of
elements. More specific classes inherit from .
For example, the HTMLElement interface is the base interface
for HTML elements, while the SVGElement interface is the basis
for all SVG elements. Most functionality is specified further
down the class hierarchy.
Languages outside the realm of the Web platform, like XUL
through the XULElement
interface, also implement .
EventTarget
Node
Element
- Implemented types
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Element()
-
factory
Properties
- ariaActiveDescendantElement ↔ Element?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaAtomic ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaAutoComplete ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaBusy ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaChecked ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaColCount ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaColIndex ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaColIndexText ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaColSpan ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaControlsElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaCurrent ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaDescribedByElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaDescription ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaDetailsElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaDisabled ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaErrorMessageElement ↔ Element?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaExpanded ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaFlowToElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaHasPopup ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaHidden ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaInvalid ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaKeyShortcuts ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaLabel ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaLabelledByElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaLevel ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaLive ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaModal ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaMultiLine ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaMultiSelectable ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaOrientation ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair -
ariaOwnsElements
↔ Iterable<
Element> -
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaPlaceholder ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaPosInSet ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaPressed ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaReadOnly ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRequired ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRoleDescription ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRowCount ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRowIndex ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRowIndexText ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaRowSpan ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaSelected ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaSetSize ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaSort ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaValueMax ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaValueMin ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaValueNow ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - ariaValueText ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - assignedSlot → HTMLSlotElement?
-
Available on Slottable, provided by the PropsSlottable extension
no setter - attributes → NamedNodeMap
-
Available on Element, provided by the PropsElement extension
no setter - baseURI → String
-
Available on Node, provided by the PropsNode extension
no setter - childElementCount → int
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - childNodes → NodeList
-
Available on Node, provided by the PropsNode extension
no setter - children → HTMLCollection
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - classList → DOMTokenList
-
Available on Element, provided by the PropsElement extension
no setter - className ↔ dynamic
-
Available on Element, provided by the PropsElement extension
getter/setter pair - clientHeight → int
-
Available on Element, provided by the PropsElement extension
no setter - clientLeft → int
-
Available on Element, provided by the PropsElement extension
no setter - clientTop → int
-
Available on Element, provided by the PropsElement extension
no setter - clientWidth → int
-
Available on Element, provided by the PropsElement extension
no setter - editContext ↔ EditContext?
-
Available on Element, provided by the PropsElement extension
getter/setter pair - elementTiming ↔ String
-
Available on Element, provided by the PropsElement extension
getter/setter pair - firstChild → Node?
-
Available on Node, provided by the PropsNode extension
no setter - firstElementChild → Element?
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Available on Element, provided by the PropsElement extension
getter/setter pair - innerHTML ↔ String
-
Available on InnerHTML, provided by the PropsInnerHTML extension
getter/setter pair - isConnected → bool
-
Available on Node, provided by the PropsNode extension
no setter - lastChild → Node?
-
Available on Node, provided by the PropsNode extension
no setter - lastElementChild → Element?
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - localName → String
-
Available on Element, provided by the PropsElement extension
no setter - namespaceURI → String?
-
Available on Element, provided by the PropsElement extension
no setter - nextElementSibling → Element?
-
Available on NonDocumentTypeChildNode, provided by the PropsNonDocumentTypeChildNode extension
no setter - nextSibling → Node?
-
Available on Node, provided by the PropsNode extension
no setter - nodeName → String
-
Available on Node, provided by the PropsNode extension
no setter - nodeType → int
-
Available on Node, provided by the PropsNode extension
no setter - nodeValue ↔ String?
-
Available on Node, provided by the PropsNode extension
getter/setter pair -
onfullscreenchange
↔ EventHandlerNonNull<
Event> ? -
Available on Element, provided by the PropsElement extension
getter/setter pair -
onfullscreenerror
↔ EventHandlerNonNull<
Event> ? -
Available on Element, provided by the PropsElement extension
getter/setter pair - outerHTML ↔ String
-
Available on Element, provided by the PropsElement extension
getter/setter pair - ownerDocument → Document?
-
Available on Node, provided by the PropsNode extension
no setter - parentElement → Element?
-
Available on Node, provided by the PropsNode extension
no setter - parentNode → Node?
-
Available on Node, provided by the PropsNode extension
no setter - part → DOMTokenList
-
Available on Element, provided by the PropsElement extension
no setter - prefix → String?
-
Available on Element, provided by the PropsElement extension
no setter - previousElementSibling → Element?
-
Available on NonDocumentTypeChildNode, provided by the PropsNonDocumentTypeChildNode extension
no setter - previousSibling → Node?
-
Available on Node, provided by the PropsNode extension
no setter - regionOverset → String
-
Available on Region, provided by the PropsRegion extension
no setter - role ↔ String?
-
Available on ARIAMixin, provided by the PropsARIAMixin extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollHeight → int
-
Available on Element, provided by the PropsElement extension
no setter - scrollLeft ↔ dynamic
-
Available on Element, provided by the PropsElement extension
getter/setter pair - scrollTop ↔ dynamic
-
Available on Element, provided by the PropsElement extension
getter/setter pair - scrollWidth → int
-
Available on Element, provided by the PropsElement extension
no setter - shadowRoot → ShadowRoot?
-
Available on Element, provided by the PropsElement extension
no setter - slot ↔ String
-
Available on Element, provided by the PropsElement extension
getter/setter pair - tagName → String
-
Available on Element, provided by the PropsElement extension
no setter - textContent ↔ String?
-
Available on Node, provided by the PropsNode extension
getter/setter pair
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
after(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ChildNode, provided by the PropsChildNode extension
-
animate(
dynamic keyframes, [dynamic options]) → Animation -
Available on Animatable, provided by the PropsAnimatable extension
-
append(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
appendChild(
Node node) → Node -
attachShadow(
ShadowRootInit init) → ShadowRoot -
Available on Element, provided by the PropsElement extension
-
before(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ChildNode, provided by the PropsChildNode extension
-
checkVisibility(
[CheckVisibilityOptions? options]) → bool -
Available on Element, provided by the PropsElement extension
-
cloneNode(
[bool? deep = false]) → Node -
closest(
String selectors) → Element? -
Available on Element, provided by the PropsElement extension
-
compareDocumentPosition(
Node other) → int -
computedStyleMap(
) → StylePropertyMapReadOnly -
Available on Element, provided by the PropsElement extension
-
contains(
Node? other) → bool -
convertPointFromNode(
DOMPointInit point, dynamic from, [ConvertCoordinateOptions? options]) → DOMPoint -
Available on GeometryUtils, provided by the PropsGeometryUtils extension
-
convertQuadFromNode(
DOMQuadInit quad, dynamic from, [ConvertCoordinateOptions? options]) → DOMQuad -
Available on GeometryUtils, provided by the PropsGeometryUtils extension
-
convertRectFromNode(
DOMRectReadOnly rect, dynamic from, [ConvertCoordinateOptions? options]) → DOMQuad -
Available on GeometryUtils, provided by the PropsGeometryUtils extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
focusableAreas(
[FocusableAreasOption? option]) → Iterable< Node> -
Available on Element, provided by the PropsElement extension
-
getAnimations(
[GetAnimationsOptions? options]) → Iterable< Animation> -
Available on Animatable, provided by the PropsAnimatable extension
-
getAttribute(
String qualifiedName) → String? -
Available on Element, provided by the PropsElement extension
-
getAttributeNames(
) → Iterable< String> -
Available on Element, provided by the PropsElement extension
-
getAttributeNode(
String qualifiedName) → Attr? -
Available on Element, provided by the PropsElement extension
-
getAttributeNodeNS(
String? namespace, String localName) → Attr? -
Available on Element, provided by the PropsElement extension
-
getAttributeNS(
String? namespace, String localName) → String? -
Available on Element, provided by the PropsElement extension
-
getBoundingClientRect(
) → DOMRect -
Available on Element, provided by the PropsElement extension
-
getBoxQuads(
[BoxQuadOptions? options]) → Iterable< DOMQuad> -
Available on GeometryUtils, provided by the PropsGeometryUtils extension
-
getClientRects(
) → DOMRectList -
Available on Element, provided by the PropsElement extension
-
getElementsByClassName(
String classNames) → HTMLCollection -
Available on Element, provided by the PropsElement extension
-
getElementsByTagName(
String qualifiedName) → HTMLCollection -
Available on Element, provided by the PropsElement extension
-
getElementsByTagNameNS(
String? namespace, String localName) → HTMLCollection -
Available on Element, provided by the PropsElement extension
-
getRegionFlowRanges(
) → Iterable< Range> -
Available on Region, provided by the PropsRegion extension
-
getRootNode(
[GetRootNodeOptions? options]) → Node -
Available on Element, provided by the PropsElement extension
-
hasAttribute(
String qualifiedName) → bool -
Available on Element, provided by the PropsElement extension
-
hasAttributeNS(
String? namespace, String localName) → bool -
Available on Element, provided by the PropsElement extension
-
hasAttributes(
) → bool -
Available on Element, provided by the PropsElement extension
-
hasChildNodes(
) → bool -
hasPointerCapture(
int pointerId) → bool -
Available on Element, provided by the PropsElement extension
-
insertAdjacentElement(
String where, Element element) → Element? -
Available on Element, provided by the PropsElement extension
-
insertAdjacentHTML(
String position, String text) → void -
Available on Element, provided by the PropsElement extension
-
insertAdjacentText(
String where, String data) → void -
Available on Element, provided by the PropsElement extension
-
insertBefore(
Node node, Node? child) → Node -
isDefaultNamespace(
String? namespace) → bool -
isEqualNode(
Node? otherNode) → bool -
isSameNode(
Node? otherNode) → bool -
lookupNamespaceURI(
String? prefix) → String? -
lookupPrefix(
String? namespace) → String? -
matches(
String selectors) → bool -
Available on Element, provided by the PropsElement extension
-
normalize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepend(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
pseudo(
String type) → CSSPseudoElement? -
Available on Element, provided by the PropsElement extension
-
querySelector(
String selectors) → Element? -
Available on ParentNode, provided by the PropsParentNode extension
-
querySelectorAll(
String selectors) → NodeList -
Available on ParentNode, provided by the PropsParentNode extension
-
releasePointerCapture(
int pointerId) → void -
Available on Element, provided by the PropsElement extension
-
remove(
) → void -
Available on ChildNode, provided by the PropsChildNode extension
-
removeAttribute(
String qualifiedName) → void -
Available on Element, provided by the PropsElement extension
-
removeAttributeNode(
Attr attr) → Attr -
Available on Element, provided by the PropsElement extension
-
removeAttributeNS(
String? namespace, String localName) → void -
Available on Element, provided by the PropsElement extension
-
removeChild(
Node child) → Node -
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
replaceChild(
Node node, Node child) → Node -
replaceChildren(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
replaceWith(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ChildNode, provided by the PropsChildNode extension
-
requestFullscreen(
[FullscreenOptions? options]) → Future< void> -
Available on Element, provided by the PropsElement extension
-
requestPointerLock(
) → void -
Available on Element, provided by the PropsElement extension
-
scroll(
[dynamic x, dynamic y]) → void -
Available on Element, provided by the PropsElement extension
-
scrollBy(
[dynamic x, dynamic y]) → void -
Available on Element, provided by the PropsElement extension
-
scrollIntoView(
[dynamic arg]) → void -
Available on Element, provided by the PropsElement extension
-
scrollTo(
[dynamic x, dynamic y]) → void -
Available on Element, provided by the PropsElement extension
-
setAttribute(
String qualifiedName, String value) → void -
Available on Element, provided by the PropsElement extension
-
setAttributeNode(
Attr attr) → Attr? -
Available on Element, provided by the PropsElement extension
-
setAttributeNodeNS(
Attr attr) → Attr? -
Available on Element, provided by the PropsElement extension
-
setAttributeNS(
String? namespace, String qualifiedName, String value) → void -
Available on Element, provided by the PropsElement extension
-
setHTML(
String input, [SetHTMLOptions? options]) → void -
Available on Element, provided by the PropsElement extension
-
setPointerCapture(
int pointerId) → void -
Available on Element, provided by the PropsElement extension
-
Available on Element, provided by the PropsElement extension
-
toggleAttribute(
String qualifiedName, [bool? force]) → bool -
Available on Element, provided by the PropsElement extension
-
toString(
) → String -
A string representation of this object.
inherited
-
webkitMatchesSelector(
String selectors) → bool -
Available on Element, provided by the PropsElement extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited