An abstract class, which all HTML elements extend.

Inheritance
Implements
Implemented by
Annotations
  • DocsEditable()
  • DomName('Element')

Constants

abortEvent EventStreamProvider<Event>

Static factory designed to expose abort events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('abort')
beforeCopyEvent EventStreamProvider<Event>

Static factory designed to expose beforecopy events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('beforecopy')
beforeCutEvent EventStreamProvider<Event>

Static factory designed to expose beforecut events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('beforecut')
beforePasteEvent EventStreamProvider<Event>

Static factory designed to expose beforepaste events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('beforepaste')
blurEvent EventStreamProvider<Event>

Static factory designed to expose blur events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('blur')
canPlayEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('canplay')
canPlayThroughEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('canplaythrough')
changeEvent EventStreamProvider<Event>

Static factory designed to expose change events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('change')
clickEvent EventStreamProvider<MouseEvent>

Static factory designed to expose click events to event handlers that are not necessarily instances of Element.

contextMenuEvent EventStreamProvider<MouseEvent>

Static factory designed to expose contextmenu events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('contextmenu')
copyEvent EventStreamProvider<ClipboardEvent>

Static factory designed to expose copy events to event handlers that are not necessarily instances of Element.

cutEvent EventStreamProvider<ClipboardEvent>

Static factory designed to expose cut events to event handlers that are not necessarily instances of Element.

doubleClickEvent EventStreamProvider<Event>

Static factory designed to expose doubleclick events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('dblclick')
dragEndEvent EventStreamProvider<MouseEvent>

A stream of dragend events fired when an element completes a drag operation.

const EventStreamProvider<MouseEvent>('dragend')
dragEnterEvent EventStreamProvider<MouseEvent>

A stream of dragenter events fired when a dragged object is first dragged over an element.

const EventStreamProvider<MouseEvent>('dragenter')
dragEvent EventStreamProvider<MouseEvent>

A stream of drag events fired when an element is currently being dragged.

dragLeaveEvent EventStreamProvider<MouseEvent>

A stream of dragleave events fired when an object being dragged over an element leaves the element's target area.

const EventStreamProvider<MouseEvent>('dragleave')
dragOverEvent EventStreamProvider<MouseEvent>

A stream of dragover events fired when a dragged object is currently being dragged over an element.

const EventStreamProvider<MouseEvent>('dragover')
dragStartEvent EventStreamProvider<MouseEvent>

A stream of dragstart events for a dragged element whose drag has begun.

const EventStreamProvider<MouseEvent>('dragstart')
dropEvent EventStreamProvider<MouseEvent>

A stream of drop events fired when a dragged object is dropped on an element.

durationChangeEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('durationchange')
emptiedEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('emptied')
endedEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('ended')
errorEvent EventStreamProvider<Event>

Static factory designed to expose error events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('error')
focusEvent EventStreamProvider<Event>

Static factory designed to expose focus events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('focus')
fullscreenChangeEvent EventStreamProvider<Event>

Static factory designed to expose fullscreenchange events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('webkitfullscreenchange')
fullscreenErrorEvent EventStreamProvider<Event>

Static factory designed to expose fullscreenerror events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('webkitfullscreenerror')
inputEvent EventStreamProvider<Event>

Static factory designed to expose input events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('input')
invalidEvent EventStreamProvider<Event>

Static factory designed to expose invalid events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('invalid')
keyDownEvent EventStreamProvider<KeyboardEvent>

Static factory designed to expose keydown events to event handlers that are not necessarily instances of Element.

keyPressEvent EventStreamProvider<KeyboardEvent>

Static factory designed to expose keypress events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<KeyboardEvent>('keypress')
keyUpEvent EventStreamProvider<KeyboardEvent>

Static factory designed to expose keyup events to event handlers that are not necessarily instances of Element.

loadedDataEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('loadeddata')
loadedMetadataEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('loadedmetadata')
loadEvent EventStreamProvider<Event>

Static factory designed to expose load events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('load')
mouseDownEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mousedown events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mousedown')
mouseEnterEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mouseenter events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mouseenter')
mouseLeaveEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mouseleave events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mouseleave')
mouseMoveEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mousemove events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mousemove')
mouseOutEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mouseout events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mouseout')
mouseOverEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mouseover events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mouseover')
mouseUpEvent EventStreamProvider<MouseEvent>

Static factory designed to expose mouseup events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<MouseEvent>('mouseup')
mouseWheelEvent EventStreamProvider<WheelEvent>

const EventStreamProvider<WheelEvent>('mousewheel')
pasteEvent EventStreamProvider<ClipboardEvent>

Static factory designed to expose paste events to event handlers that are not necessarily instances of Element.

pauseEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('pause')
playEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('play')
playingEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('playing')
rateChangeEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('ratechange')
resetEvent EventStreamProvider<Event>

Static factory designed to expose reset events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('reset')
resizeEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('resize')
scrollEvent EventStreamProvider<Event>

Static factory designed to expose scroll events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('scroll')
searchEvent EventStreamProvider<Event>

Static factory designed to expose search events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('search')
seekedEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('seeked')
seekingEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('seeking')
selectEvent EventStreamProvider<Event>

Static factory designed to expose select events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('select')
selectStartEvent EventStreamProvider<Event>

Static factory designed to expose selectstart events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('selectstart')
stalledEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('stalled')
submitEvent EventStreamProvider<Event>

Static factory designed to expose submit events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<Event>('submit')
suspendEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('suspend')
timeUpdateEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('timeupdate')
touchCancelEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchcancel events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchcancel')
touchEndEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchend events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchend')
touchEnterEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchenter events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchenter')
touchLeaveEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchleave events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchleave')
touchMoveEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchmove events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchmove')
touchStartEvent EventStreamProvider<TouchEvent>

Static factory designed to expose touchstart events to event handlers that are not necessarily instances of Element.

const EventStreamProvider<TouchEvent>('touchstart')
transitionEndEvent EventStreamProvider<TransitionEvent>

const EventStreamProvider<TransitionEvent>('transitionend')
volumeChangeEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('volumechange')
waitingEvent EventStreamProvider<Event>

const EventStreamProvider<Event>('waiting')

Static Properties

instanceRuntimeType Type

read-only

Static Methods

isTagSupported(String tag) bool

Checks to see if the tag name is supported by the current platform.

Constructors

Element.a()

Creates a new <a> element.

factory
Element.article()

Creates a new <article> element.

factory
Element.aside()

Creates a new <aside> element.

factory
Element.audio()

Creates a new <audio> element.

factory
Element.br()

Creates a new <br> element.

factory
Element.canvas()

Creates a new <canvas> element.

factory
Element.created()

Custom element creation constructor.

Element.div()

Creates a new <div> element.

factory
Element.footer()

Creates a new <footer> element.

factory
Element.header()

Creates a new <header> element.

factory
Element.hr()

Creates a new <hr> element.

factory
Element.html(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer})

Creates an HTML element from a valid fragment of HTML.

factory
Element.iframe()

Creates a new <iframe> element.

factory
Element.img()

Creates a new <img> element.

factory
Element.internal_()

Element.li()

Creates a new <li> element.

factory
Element.nav()

Creates a new <nav> element.

factory
Element.ol()

Creates a new <ol> element.

factory
Element.option()

Creates a new <option> element.

factory
Element.p()

Creates a new <p> element.

factory
Element.pre()

Creates a new <pre> element.

factory
Element.section()

Creates a new <section> element.

factory
Element.select()

Creates a new <select> element.

factory
Element.span()

Creates a new <span> element.

factory
Element.svg()

Creates a new <svg> element.

factory
Element.table()

Creates a new <table> element.

factory
Element.tag(String tag, [String typeExtention])

Creates the HTML element specified by the tag name.

factory
Element.td()

Creates a new <td> element.

factory
Element.textarea()

Creates a new <textarea> element.

factory
Element.th()

Creates a new <th> element.

factory
Element.tr()

Creates a new <tr> element.

factory
Element.ul()

Creates a new <ul> element.

factory
Element.video()

Creates a new <video> element.

factory

Properties

attributes Map<String, String>

All attributes on this element.

read / write
baseUri String

read-only, inherited
borderEdge CssRect

Access the dimensions and position of this element's content + padding + border box.

read-only
childNodes List<Node>

A list of this node's children.

read-only, inherited
children List<Element>

List of the direct children of this element.

read / write
classes CssClassSet

The set of CSS classes applied to this element.

read / write
className String

read / write
client Rectangle

Gets the position of this element relative to the client area of the page.

read-only
clientHeight int

read-only
clientLeft int

read-only
clientTop int

read-only
clientWidth int

read-only
computedName String

read-only
computedRole String

read-only
contentEdge CssRect

Access this element's content position.

read-only
contentEditable String

read / write
contextMenu MenuElement

read / write
dataset Map<String, String>

Allows access to all custom data attributes (data-*) set on this element.

read / write
dir String

read / write
documentOffset Point

Provides the coordinates of the element relative to the top of the document.

read-only
draggable bool

read / write
dropzone String

read / write
firstChild Node

The first child of this node.

read-only, inherited
hashCode int

read-only, inherited
hidden bool

read / write
id String

read / write
innerHtml String

Parses the HTML fragment and sets it as the contents of this element.

read / write
isContentEditable bool

read-only
lang String

read / write
lastChild Node

The last child of this node.

read-only, inherited
localName String

read-only
marginEdge CssRect

Access the dimensions and position of this element's content + padding + border + margin box.

read-only
namespaceUri String

A URI that identifies the XML namespace of this element.

read-only
nextElementSibling Element

read-only
nextNode Node

The next sibling node.

read-only, inherited
nodeName String

The name of this node.

read-only, inherited
nodes List<Node>

A modifiable list of this node's children.

read / write, inherited
nodeType int

The type of node.

read-only, inherited
nodeValue String

The value of this node.

read-only, inherited
offset Rectangle

Gets the offset of this element relative to its offsetParent.

read-only
offsetHeight int

read-only
offsetLeft int

read-only
offsetParent Element

read-only
offsetTop int

read-only
offsetWidth int

read-only
on ElementEvents

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

read-only
onAbort ElementStream<Event>

Stream of abort events handled by this Element.

read-only
onBeforeCopy ElementStream<Event>

Stream of beforecopy events handled by this Element.

read-only
onBeforeCut ElementStream<Event>

Stream of beforecut events handled by this Element.

read-only
onBeforePaste ElementStream<Event>

Stream of beforepaste events handled by this Element.

read-only
onBlur ElementStream<Event>

Stream of blur events handled by this Element.

read-only
onCanPlay ElementStream<Event>

read-only
onCanPlayThrough ElementStream<Event>

read-only
onChange ElementStream<Event>

Stream of change events handled by this Element.

read-only
onClick ElementStream<MouseEvent>

Stream of click events handled by this Element.

read-only
onContextMenu ElementStream<MouseEvent>

Stream of contextmenu events handled by this Element.

read-only
onCopy ElementStream<ClipboardEvent>

Stream of copy events handled by this Element.

read-only
onCut ElementStream<ClipboardEvent>

Stream of cut events handled by this Element.

read-only
onDoubleClick ElementStream<Event>

Stream of doubleclick events handled by this Element.

read-only
onDrag ElementStream<MouseEvent>

A stream of drag events fired when this element currently being dragged.

read-only
onDragEnd ElementStream<MouseEvent>

A stream of dragend events fired when this element completes a drag operation.

read-only
onDragEnter ElementStream<MouseEvent>

A stream of dragenter events fired when a dragged object is first dragged over this element.

read-only
onDragLeave ElementStream<MouseEvent>

A stream of dragleave events fired when an object being dragged over this element leaves this element's target area.

read-only
onDragOver ElementStream<MouseEvent>

A stream of dragover events fired when a dragged object is currently being dragged over this element.

read-only
onDragStart ElementStream<MouseEvent>

A stream of dragstart events fired when this element starts being dragged.

read-only
onDrop ElementStream<MouseEvent>

A stream of drop events fired when a dragged object is dropped on this element.

read-only
onDurationChange ElementStream<Event>

read-only
onEmptied ElementStream<Event>

read-only
onEnded ElementStream<Event>

read-only
onError ElementStream<Event>

Stream of error events handled by this Element.

read-only
onFocus ElementStream<Event>

Stream of focus events handled by this Element.

read-only
onFullscreenChange ElementStream<Event>

Stream of fullscreenchange events handled by this Element.

read-only
onFullscreenError ElementStream<Event>

Stream of fullscreenerror events handled by this Element.

read-only
onInput ElementStream<Event>

Stream of input events handled by this Element.

read-only
onInvalid ElementStream<Event>

Stream of invalid events handled by this Element.

read-only
onKeyDown ElementStream<KeyboardEvent>

Stream of keydown events handled by this Element.

read-only
onKeyPress ElementStream<KeyboardEvent>

Stream of keypress events handled by this Element.

read-only
onKeyUp ElementStream<KeyboardEvent>

Stream of keyup events handled by this Element.

read-only
onLoad ElementStream<Event>

Stream of load events handled by this Element.

read-only
onLoadedData ElementStream<Event>

read-only
onLoadedMetadata ElementStream<Event>

read-only
onMouseDown ElementStream<MouseEvent>

Stream of mousedown events handled by this Element.

read-only
onMouseEnter ElementStream<MouseEvent>

Stream of mouseenter events handled by this Element.

read-only
onMouseLeave ElementStream<MouseEvent>

Stream of mouseleave events handled by this Element.

read-only
onMouseMove ElementStream<MouseEvent>

Stream of mousemove events handled by this Element.

read-only
onMouseOut ElementStream<MouseEvent>

Stream of mouseout events handled by this Element.

read-only
onMouseOver ElementStream<MouseEvent>

Stream of mouseover events handled by this Element.

read-only
onMouseUp ElementStream<MouseEvent>

Stream of mouseup events handled by this Element.

read-only
onMouseWheel ElementStream<WheelEvent>

Stream of mousewheel events handled by this Element.

read-only
onPaste ElementStream<ClipboardEvent>

Stream of paste events handled by this Element.

read-only
onPause ElementStream<Event>

read-only
onPlay ElementStream<Event>

read-only
onPlaying ElementStream<Event>

read-only
onRateChange ElementStream<Event>

read-only
onReset ElementStream<Event>

Stream of reset events handled by this Element.

read-only
onResize ElementStream<Event>

read-only
onScroll ElementStream<Event>

Stream of scroll events handled by this Element.

read-only
onSearch ElementStream<Event>

Stream of search events handled by this Element.

read-only
onSeeked ElementStream<Event>

read-only
onSeeking ElementStream<Event>

read-only
onSelect ElementStream<Event>

Stream of select events handled by this Element.

read-only
onSelectStart ElementStream<Event>

Stream of selectstart events handled by this Element.

read-only
onStalled ElementStream<Event>

read-only
onSubmit ElementStream<Event>

Stream of submit events handled by this Element.

read-only
onSuspend ElementStream<Event>

read-only
onTimeUpdate ElementStream<Event>

read-only
onTouchCancel ElementStream<TouchEvent>

Stream of touchcancel events handled by this Element.

read-only
onTouchEnd ElementStream<TouchEvent>

Stream of touchend events handled by this Element.

read-only
onTouchEnter ElementStream<TouchEvent>

Stream of touchenter events handled by this Element.

read-only
onTouchLeave ElementStream<TouchEvent>

Stream of touchleave events handled by this Element.

read-only
onTouchMove ElementStream<TouchEvent>

Stream of touchmove events handled by this Element.

read-only
onTouchStart ElementStream<TouchEvent>

Stream of touchstart events handled by this Element.

read-only
onTransitionEnd ElementStream<TransitionEvent>

Stream of transitionend events handled by this Element.

read-only
onVolumeChange ElementStream<Event>

read-only
onWaiting ElementStream<Event>

read-only
outerHtml String

read-only
ownerDocument Document

The document this node belongs to.

read-only, inherited
paddingEdge CssRect

Access the dimensions and position of this element's content + padding box.

read-only
parent Element

The parent element of this node.

read-only, inherited
parentNode Node

The parent node of this node.

read-only, inherited
previousElementSibling Element

read-only
previousNode Node

The previous sibling node.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
scrollHeight int

read-only
scrollLeft int

read / write
scrollTop int

read / write
scrollWidth int

read-only
shadowRoot ShadowRoot

read-only
spellcheck bool

read / write
style CssStyleDeclaration

read-only
tabIndex int

read / write
tagName String

read-only
text String

All text within this node and its decendents.

read / write, inherited
title String

read / write
translate bool

read / write
xtag → dynamic

Experimental support for web components. This field stores a reference to the component implementation. It was inspired by Mozilla's x-tags project. Please note: in the future it may be possible to extend Element from your class, in which case this field will be deprecated.

read / write

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addEventListener(String type, EventListener listener(Event event), [bool useCapture]) → void

inherited
after(Object nodes) → void

animate(Iterable<Map<String, dynamic>> frames, [timing]) Animation

Creates a new AnimationEffect object whose target element is the object on which the method is called, and calls the play() method of the AnimationTimeline object of the document timeline of the node document of the element, passing the newly created AnimationEffect as the argument to the method. Returns an Animation for the effect.

append(Node node) Node

Adds a node to the end of the child nodes list of this node.

inherited
appendHtml(String text, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void

Parses the specified text as HTML and adds the resulting node after the last child of this element.

appendText(String text) → void

Adds the specified text after the last child of this element.

attached() → void

Called by the DOM when this element has been inserted into the live document.

attributeChanged(String name, String oldValue, String newValue) → void

Called by the DOM whenever an attribute on this has been changed.

before(Object nodes) → void

blur() → void

click() → void

clone(bool deep) Node

Returns a copy of this node.

inherited
closest(String selectors) Element

contains(Node other) bool

Returns true if this node contains the specified node.

inherited
createFragment(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) DocumentFragment

Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.

createShadowRoot([Map shadowRootInitDict]) ShadowRoot

detached() → void

Called by the DOM when this element has been removed from the live document.

dispatchEvent(Event event) bool

inherited
enteredView() → void

Deprecated*: override attached instead.

focus() → void

getAnimations() List<Animation>

getAttribute(String name) String

getAttributeNS(String namespaceURI, String localName) String

getBoundingClientRect() Rectangle

Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.

getClientRects() List<Rectangle>

Returns a list of bounding rectangles for each box associated with this element.

getComputedStyle([String pseudoElement]) CssStyleDeclaration

The set of all CSS values applied to this element, including inherited and default values.

getDestinationInsertionPoints() List<Node>

Returns a list of shadow DOM insertion points to which this element is distributed.

getElementsByClassName(String classNames) List<Node>

Returns a list of nodes with the given class name inside this element.

getNamespacedAttributes(String namespace) Map<String, String>

Gets a map for manipulating the attributes of a particular namespace.

hasChildNodes() bool

Returns true if this node has any children.

inherited
insertAdjacentElement(String where, Element element) Element

insertAdjacentHtml(String where, String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void

Parses text as an HTML fragment and inserts it into the DOM at the specified location.

insertAdjacentText(String where, String text) → void

insertAllBefore(Iterable<Node> newNodes, Node refChild) Node

Inserts all of the nodes into this node directly before refChild.

inherited
insertBefore(Node node, Node child) Node

Inserts all of the nodes into this node directly before refChild.

inherited
leftView() → void

Deprecated*: override detached instead.

matches(String selectors) bool

matchesWithAncestors(String selectors) bool

Checks if this element or any of its parents match the CSS selectors.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
offsetTo(Element parent) Point

Provides the offset of this element's borderEdge relative to the specified parent.

query(String relativeSelectors) Element

Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.

queryAll(String relativeSelectors) ElementList<Element>

Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.

querySelector(String selectors) Element

Finds the first descendant element of this element that matches the specified group of selectors.

querySelectorAll(String selectors) ElementList<Element>

Finds all descendent elements of this element that match the specified group of selectors.

remove() → void

Removes this node from the DOM.

removeEventListener(String type, EventListener listener(Event event), [bool useCapture]) → void

inherited
replaceWith(Node otherNode) Node

Replaces this node with another node.

inherited
requestFullscreen() → void

requestPointerLock() → void

scroll([options_OR_x, num y]) → void

scrollBy([options_OR_x, num y]) → void

scrollIntoView([ScrollAlignment alignment]) → void

Scrolls this element into view.

scrollTo([options_OR_x, num y]) → void

setAttribute(String name, String value) → void

setAttributeNS(String namespaceURI, String name, String value) → void

setInnerHtml(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void

Parses the HTML fragment and sets it as the contents of this element. This ensures that the generated content follows the sanitization rules specified by the validator or treeSanitizer.

toString() String

The string representation of this element.