Not documented.

Annotations
  • DocsEditable()
  • DomName('HTMLElement')
Extends
Implements
Implemented by

Constants

EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort')
const
EventStreamProvider<Event> blurEvent = const EventStreamProvider<Event>('blur')
const
EventStreamProvider<Event> canPlayEvent = const EventStreamProvider<Event>('canplay')
const
EventStreamProvider<Event> canPlayThroughEvent = const EventStreamProvider<Event>('canplaythrough')
const
EventStreamProvider<Event> changeEvent = const EventStreamProvider<Event>('change')
const
EventStreamProvider<MouseEvent> clickEvent = const EventStreamProvider<MouseEvent>('click')
const
EventStreamProvider<MouseEvent> contextMenuEvent = const EventStreamProvider<MouseEvent>('contextmenu')
const
EventStreamProvider<Event> doubleClickEvent = const EventStreamProvider<Event>('dblclick')
const
EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamProvider<MouseEvent>('dragend')
const
EventStreamProvider<MouseEvent> dragEnterEvent = const EventStreamProvider<MouseEvent>('dragenter')
const
EventStreamProvider<MouseEvent> dragEvent = const EventStreamProvider<MouseEvent>('drag')
const
EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStreamProvider<MouseEvent>('dragleave')
const
EventStreamProvider<MouseEvent> dragOverEvent = const EventStreamProvider<MouseEvent>('dragover')
const
EventStreamProvider<MouseEvent> dragStartEvent = const EventStreamProvider<MouseEvent>('dragstart')
const
EventStreamProvider<MouseEvent> dropEvent = const EventStreamProvider<MouseEvent>('drop')
const
EventStreamProvider<Event> durationChangeEvent = const EventStreamProvider<Event>('durationchange')
const
EventStreamProvider<Event> emptiedEvent = const EventStreamProvider<Event>('emptied')
const
EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended')
const
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
EventStreamProvider<Event> focusEvent = const EventStreamProvider<Event>('focus')
const
EventStreamProvider<Event> inputEvent = const EventStreamProvider<Event>('input')
const
EventStreamProvider<Event> invalidEvent = const EventStreamProvider<Event>('invalid')
const
EventStreamProvider<KeyboardEvent> keyDownEvent = const EventStreamProvider<KeyboardEvent>('keydown')
const
EventStreamProvider<KeyboardEvent> keyPressEvent = const EventStreamProvider<KeyboardEvent>('keypress')
const
EventStreamProvider<KeyboardEvent> keyUpEvent = const EventStreamProvider<KeyboardEvent>('keyup')
const
EventStreamProvider<Event> loadedDataEvent = const EventStreamProvider<Event>('loadeddata')
const
EventStreamProvider<Event> loadedMetadataEvent = const EventStreamProvider<Event>('loadedmetadata')
const
EventStreamProvider<Event> loadEvent = const EventStreamProvider<Event>('load')
const
EventStreamProvider<MouseEvent> mouseDownEvent = const EventStreamProvider<MouseEvent>('mousedown')
const
EventStreamProvider<MouseEvent> mouseEnterEvent = const EventStreamProvider<MouseEvent>('mouseenter')
const
EventStreamProvider<MouseEvent> mouseLeaveEvent = const EventStreamProvider<MouseEvent>('mouseleave')
const
EventStreamProvider<MouseEvent> mouseMoveEvent = const EventStreamProvider<MouseEvent>('mousemove')
const
EventStreamProvider<MouseEvent> mouseOutEvent = const EventStreamProvider<MouseEvent>('mouseout')
const
EventStreamProvider<MouseEvent> mouseOverEvent = const EventStreamProvider<MouseEvent>('mouseover')
const
EventStreamProvider<MouseEvent> mouseUpEvent = const EventStreamProvider<MouseEvent>('mouseup')
const
EventStreamProvider<WheelEvent> mouseWheelEvent = const EventStreamProvider<WheelEvent>('mousewheel')
const
EventStreamProvider<Event> pauseEvent = const EventStreamProvider<Event>('pause')
const
EventStreamProvider<Event> playEvent = const EventStreamProvider<Event>('play')
const
EventStreamProvider<Event> playingEvent = const EventStreamProvider<Event>('playing')
const
EventStreamProvider<Event> rateChangeEvent = const EventStreamProvider<Event>('ratechange')
const
EventStreamProvider<Event> resetEvent = const EventStreamProvider<Event>('reset')
const
EventStreamProvider<Event> resizeEvent = const EventStreamProvider<Event>('resize')
const
EventStreamProvider<Event> scrollEvent = const EventStreamProvider<Event>('scroll')
const
EventStreamProvider<Event> seekedEvent = const EventStreamProvider<Event>('seeked')
const
EventStreamProvider<Event> seekingEvent = const EventStreamProvider<Event>('seeking')
const
EventStreamProvider<Event> selectEvent = const EventStreamProvider<Event>('select')
const
EventStreamProvider<Event> stalledEvent = const EventStreamProvider<Event>('stalled')
const
EventStreamProvider<Event> submitEvent = const EventStreamProvider<Event>('submit')
const
EventStreamProvider<Event> suspendEvent = const EventStreamProvider<Event>('suspend')
const
EventStreamProvider<Event> timeUpdateEvent = const EventStreamProvider<Event>('timeupdate')
const
EventStreamProvider<Event> volumeChangeEvent = const EventStreamProvider<Event>('volumechange')
const
EventStreamProvider<Event> waitingEvent = const EventStreamProvider<Event>('waiting')
const

Properties

Map<String,String> attributes
read / write, inherited
All attributes on this element.
String baseUri
read-only, inherited
CssRect borderEdge
read-only, inherited
Access the dimensions and position of this element's content + padding + border box.
List<Node> childNodes
read-only, inherited
A list of this node's children.
List<Element> children
read / write, inherited
List of the direct children of this element.
CssClassSet classes
read / write, inherited
The set of CSS classes applied to this element.
String className
read / write, inherited
Rectangle client
read-only, inherited
Gets the position of this element relative to the client area of the page.
int clientHeight
read-only, inherited
int clientLeft
read-only, inherited
int clientTop
read-only, inherited
int clientWidth
read-only, inherited
CssRect contentEdge
read-only, inherited
Access this element's content position.
String contentEditable
read / write
String contentEditable
read / write, inherited
MenuElement contextMenu
read / write
MenuElement contextMenu
read / write, inherited
Map<String,String> dataset
read / write, inherited
Allows access to all custom data attributes (data-*) set on this element.
String dir
read / write
String dir
read / write, inherited
Point documentOffset
read-only, inherited
Provides the coordinates of the element relative to the top of the document.
bool draggable
read / write
bool draggable
read / write, inherited
String dropzone
read / write
String dropzone
read / write, inherited
Node firstChild
read-only, inherited
The first child of this node.
bool hidden
read / write
bool hidden
read / write, inherited
String id
read / write, inherited
String innerHtml
read / write, inherited
Parses the HTML fragment and sets it as the contents of this element.
InputMethodContext inputMethodContext
read-only
bool isContentEditable
read-only
String lang
read / write
String lang
read / write, inherited
Node lastChild
read-only, inherited
The last child of this node.
String localName
read-only, inherited
CssRect marginEdge
read-only, inherited
Access the dimensions and position of this element's content + padding + border + margin box.
String namespaceUri
read-only, inherited
A URI that identifies the XML namespace of this element.
Element nextElementSibling
read-only, inherited
Node nextNode
read-only, inherited
The next sibling node.
String nodeName
read-only, inherited
The name of this node.
List<Node> nodes
read / write, inherited
A modifiable list of this node's children.
int nodeType
read-only, inherited
The type of node.
String nodeValue
read-only, inherited
The value of this node.
Rectangle offset
read-only, inherited
Gets the offset of this element relative to its offsetParent.
int offsetHeight
read-only, inherited
int offsetLeft
read-only, inherited
Element offsetParent
read-only, inherited
int offsetTop
read-only, inherited
int offsetWidth
read-only, inherited
ElementEvents on
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
ElementStream<Event> onAbort
read-only
ElementStream<Event> onBeforeCopy
read-only, inherited
Stream of beforecopy events handled by this Element.
ElementStream<Event> onBeforeCut
read-only, inherited
Stream of beforecut events handled by this Element.
ElementStream<Event> onBeforePaste
read-only, inherited
Stream of beforepaste events handled by this Element.
ElementStream<Event> onBlur
read-only
ElementStream<Event> onCanPlay
read-only
ElementStream<Event> onCanPlayThrough
read-only
ElementStream<Event> onChange
read-only
ElementStream<MouseEvent> onClick
read-only
ElementStream<MouseEvent> onContextMenu
read-only
ElementStream<Event> onCopy
read-only, inherited
Stream of copy events handled by this Element.
ElementStream<Event> onCut
read-only, inherited
Stream of cut events handled by this Element.
ElementStream<Event> onDoubleClick
read-only
ElementStream<MouseEvent> onDrag
read-only
ElementStream<MouseEvent> onDragEnd
read-only
ElementStream<MouseEvent> onDragEnter
read-only
ElementStream<MouseEvent> onDragLeave
read-only
ElementStream<MouseEvent> onDragOver
read-only
ElementStream<MouseEvent> onDragStart
read-only
ElementStream<MouseEvent> onDrop
read-only
ElementStream<Event> onDurationChange
read-only
ElementStream<Event> onEmptied
read-only
ElementStream<Event> onEnded
read-only
ElementStream<Event> onError
read-only
ElementStream<Event> onFocus
read-only
ElementStream<Event> onFullscreenChange
read-only, inherited
Stream of fullscreenchange events handled by this Element.
ElementStream<Event> onFullscreenError
read-only, inherited
Stream of fullscreenerror events handled by this Element.
ElementStream<Event> onInput
read-only
ElementStream<Event> onInvalid
read-only
ElementStream<KeyboardEvent> onKeyDown
read-only
ElementStream<KeyboardEvent> onKeyPress
read-only
ElementStream<KeyboardEvent> onKeyUp
read-only
ElementStream<Event> onLoad
read-only
ElementStream<Event> onLoadedData
read-only
ElementStream<Event> onLoadedMetadata
read-only
ElementStream<MouseEvent> onMouseDown
read-only
ElementStream<MouseEvent> onMouseEnter
read-only
ElementStream<MouseEvent> onMouseLeave
read-only
ElementStream<MouseEvent> onMouseMove
read-only
ElementStream<MouseEvent> onMouseOut
read-only
ElementStream<MouseEvent> onMouseOver
read-only
ElementStream<MouseEvent> onMouseUp
read-only
ElementStream<WheelEvent> onMouseWheel
read-only
ElementStream<Event> onPaste
read-only, inherited
Stream of paste events handled by this Element.
ElementStream<Event> onPause
read-only
ElementStream<Event> onPlay
read-only
ElementStream<Event> onPlaying
read-only
ElementStream<Event> onRateChange
read-only
ElementStream<Event> onReset
read-only
ElementStream<Event> onResize
read-only
ElementStream<Event> onScroll
read-only
ElementStream<Event> onSearch
read-only, inherited
Stream of search events handled by this Element.
ElementStream<Event> onSeeked
read-only
ElementStream<Event> onSeeking
read-only
ElementStream<Event> onSelect
read-only
ElementStream<Event> onSelectStart
read-only, inherited
Stream of selectstart events handled by this Element.
ElementStream<Event> onStalled
read-only
ElementStream<Event> onSubmit
read-only
ElementStream<Event> onSuspend
read-only
ElementStream<Event> onTimeUpdate
read-only
ElementStream<TouchEvent> onTouchCancel
read-only, inherited
Stream of touchcancel events handled by this Element.
ElementStream<TouchEvent> onTouchEnd
read-only, inherited
Stream of touchend events handled by this Element.
ElementStream<TouchEvent> onTouchEnter
read-only, inherited
Stream of touchenter events handled by this Element.
ElementStream<TouchEvent> onTouchLeave
read-only, inherited
Stream of touchleave events handled by this Element.
ElementStream<TouchEvent> onTouchMove
read-only, inherited
Stream of touchmove events handled by this Element.
ElementStream<TouchEvent> onTouchStart
read-only, inherited
Stream of touchstart events handled by this Element.
ElementStream<TransitionEvent> onTransitionEnd
read-only, inherited
Stream of transitionend events handled by this Element.
ElementStream<Event> onVolumeChange
read-only
ElementStream<Event> onWaiting
read-only
String outerHtml
read-only, inherited
Document ownerDocument
read-only, inherited
The document this node belongs to.
CssRect paddingEdge
read-only, inherited
Access the dimensions and position of this element's content + padding box.
Element parent
read-only, inherited
The parent element of this node.
Node parentNode
read-only, inherited
The parent node of this node.
Element previousElementSibling
read-only, inherited
Node previousNode
read-only, inherited
The previous sibling node.
int scrollHeight
read-only, inherited
int scrollLeft
read / write, inherited
int scrollTop
read / write, inherited
int scrollWidth
read-only, inherited
ShadowRoot shadowRoot
read-only, inherited
bool spellcheck
read / write
bool spellcheck
read / write, inherited
CssStyleDeclaration style
read-only, inherited
int tabIndex
read / write
int tabIndex
read / write, inherited
String tagName
read-only, inherited
String text
read / write, inherited
All text within this node and its decendents.
String title
read / write
String title
read / write, inherited
bool translate
read / write, inherited
bool translate
read / write
dynamic xtag
read / write, inherited
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.

Constructors

HtmlElement.created()
Constructor instantiated by the DOM when a custom element has been created.

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
animate(Object effect, [Object timing]) → AnimationPlayer
inherited
append(Node newChild) → Node
inherited
Adds a node to the end of the child nodes list of this node.
appendHtml(String text, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void
inherited
Parses the specified text as HTML and adds the resulting node after the last child of this element.
appendText(String text) → void
inherited
Adds the specified text after the last child of this element.
attached() → void
inherited
Called by the DOM when this element has been inserted into the live document.
attributeChanged(String name, String oldValue, String newValue) → void
inherited
Called by the DOM whenever an attribute on this has been changed.
blur() → void
inherited
click() → void
clone(bool deep) → Node
inherited
Returns a copy of this node.
contains(Node other) → bool
inherited
Returns true if this node contains the specified node.
createFragment(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → DocumentFragment
inherited
Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.
createShadowRoot() → ShadowRoot
inherited
detached() → void
inherited
Called by the DOM when this element has been removed from the live document.
dispatchEvent(Event event) → bool
inherited
enteredView() → void
inherited
Deprecated*: override attached instead.
focus() → void
inherited
getAnimationPlayers() → List<AnimationPlayer>
inherited
getAttribute(String name) → String
inherited
getAttributeNS(String namespaceURI, String localName) → String
inherited
getBoundingClientRect() → Rectangle
inherited
Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
getClientRects() → List<Rectangle>
inherited
Returns a list of bounding rectangles for each box associated with this element.
getComputedStyle([String pseudoElement]) → CssStyleDeclaration
inherited
The set of all CSS values applied to this element, including inherited and default values.
getDestinationInsertionPoints() → List<Node>
inherited
Returns a list of shadow DOM insertion points to which this element is distributed.
getElementsByClassName(String classNames) → List<Node>
inherited
Returns a list of nodes with the given class name inside this element.
getNamespacedAttributes(String namespace) → Map<String,String>
inherited
Gets a map for manipulating the attributes of a particular namespace.
hasChildNodes() → bool
inherited
Returns true if this node has any children.
insertAdjacentElement(String where, Element element) → Element
inherited
insertAdjacentHtml(String where, String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void
inherited
Parses text as an HTML fragment and inserts it into the DOM at the specified location.
insertAdjacentText(String where, String text) → void
inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited
Inserts all of the nodes into this node directly before refChild.
insertBefore(Node newChild, Node refChild) → Node
inherited
Inserts all of the nodes into this node directly before refChild.
leftView() → void
inherited
Deprecated*: override detached instead.
matches(String selectors) → bool
inherited
matchesWithAncestors(String selectors) → bool
inherited
Checks if this element or any of its parents match the CSS selectors.
offsetTo(Element parent) → Point
inherited
Provides the offset of this element's borderEdge relative to the specified parent.
query(String relativeSelectors) → Element
inherited
Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.
queryAll(String relativeSelectors) → ElementList<Element>
inherited
Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.
querySelector(String selectors) → Element
inherited
Finds the first descendant element of this element that matches the specified group of selectors.
querySelectorAll(String selectors) → ElementList<Element>
inherited
Finds all descendent elements of this element that match the specified group of selectors.
remove() → void
inherited
Removes this node from the DOM.
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
replaceWith(Node otherNode) → Node
inherited
Replaces this node with another node.
requestFullscreen() → void
inherited
requestPointerLock() → void
inherited
scrollIntoView([ScrollAlignment alignment]) → void
inherited
Scrolls this element into view.
setAttribute(String name, String value) → void
inherited
setAttributeNS(String namespaceURI, String qualifiedName, String value) → void
inherited
setInnerHtml(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void
inherited
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
inherited
The string representation of this element.