An abstract class, which all HTML elements extend.
- Annotations
- DocsEditable()
- DomName('Element')
- Extends
- Object
- EventTarget
- Node
- Element
- Implements
- Implemented by
Constants
-
EventStreamProvider<Event>
abortEvent
=
const EventStreamProvider<Event>
('abort') -
constStatic factory designed to expose
abort
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
beforeCopyEvent
=
const EventStreamProvider<Event>
('beforecopy') -
constStatic factory designed to expose
beforecopy
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
beforeCutEvent
=
const EventStreamProvider<Event>
('beforecut') -
constStatic factory designed to expose
beforecut
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
beforePasteEvent
=
const EventStreamProvider<Event>
('beforepaste') -
constStatic factory designed to expose
beforepaste
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
blurEvent
=
const EventStreamProvider<Event>
('blur') -
constStatic factory designed to expose
blur
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
canPlayEvent
=
const EventStreamProvider<Event>
('canplay') -
const
-
EventStreamProvider<Event>
canPlayThroughEvent
=
const EventStreamProvider<Event>
('canplaythrough') -
const
-
EventStreamProvider<Event>
changeEvent
=
const EventStreamProvider<Event>
('change') -
constStatic factory designed to expose
change
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
clickEvent
=
const EventStreamProvider<MouseEvent>
('click') -
constStatic factory designed to expose
click
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
contextMenuEvent
=
const EventStreamProvider<MouseEvent>
('contextmenu') -
constStatic factory designed to expose
contextmenu
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
copyEvent
=
const EventStreamProvider<Event>
('copy') -
constStatic factory designed to expose
copy
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
cutEvent
=
const EventStreamProvider<Event>
('cut') -
constStatic factory designed to expose
cut
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
doubleClickEvent
=
const EventStreamProvider<Event>
('dblclick') -
constStatic factory designed to expose
doubleclick
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
dragEndEvent
=
const EventStreamProvider<MouseEvent>
('dragend') -
constA stream of
dragend
events fired when an element completes a drag operation. -
EventStreamProvider<MouseEvent>
dragEnterEvent
=
const EventStreamProvider<MouseEvent>
('dragenter') -
constA stream of
dragenter
events fired when a dragged object is first dragged over an element. -
EventStreamProvider<MouseEvent>
dragEvent
=
const EventStreamProvider<MouseEvent>
('drag') -
constA stream of
drag
events fired when an element is currently being dragged. -
EventStreamProvider<MouseEvent>
dragLeaveEvent
=
const EventStreamProvider<MouseEvent>
('dragleave') -
constA stream of
dragleave
events fired when an object being dragged over an element leaves the element's target area. -
EventStreamProvider<MouseEvent>
dragOverEvent
=
const EventStreamProvider<MouseEvent>
('dragover') -
constA stream of
dragover
events fired when a dragged object is currently being dragged over an element. -
EventStreamProvider<MouseEvent>
dragStartEvent
=
const EventStreamProvider<MouseEvent>
('dragstart') -
constA stream of
dragstart
events for a dragged element whose drag has begun. -
EventStreamProvider<MouseEvent>
dropEvent
=
const EventStreamProvider<MouseEvent>
('drop') -
constA stream of
drop
events fired when a dragged object is dropped on an element. -
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') -
constStatic factory designed to expose
error
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
focusEvent
=
const EventStreamProvider<Event>
('focus') -
constStatic factory designed to expose
focus
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
fullscreenChangeEvent
=
const EventStreamProvider<Event>
('webkitfullscreenchange') -
constStatic factory designed to expose
fullscreenchange
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
fullscreenErrorEvent
=
const EventStreamProvider<Event>
('webkitfullscreenerror') -
constStatic factory designed to expose
fullscreenerror
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
inputEvent
=
const EventStreamProvider<Event>
('input') -
constStatic factory designed to expose
input
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
invalidEvent
=
const EventStreamProvider<Event>
('invalid') -
constStatic factory designed to expose
invalid
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<KeyboardEvent>
keyDownEvent
=
const EventStreamProvider<KeyboardEvent>
('keydown') -
constStatic factory designed to expose
keydown
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<KeyboardEvent>
keyPressEvent
=
const EventStreamProvider<KeyboardEvent>
('keypress') -
constStatic factory designed to expose
keypress
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<KeyboardEvent>
keyUpEvent
=
const EventStreamProvider<KeyboardEvent>
('keyup') -
constStatic factory designed to expose
keyup
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
loadedDataEvent
=
const EventStreamProvider<Event>
('loadeddata') -
const
-
EventStreamProvider<Event>
loadedMetadataEvent
=
const EventStreamProvider<Event>
('loadedmetadata') -
const
-
EventStreamProvider<Event>
loadEvent
=
const EventStreamProvider<Event>
('load') -
constStatic factory designed to expose
load
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseDownEvent
=
const EventStreamProvider<MouseEvent>
('mousedown') -
constStatic factory designed to expose
mousedown
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseEnterEvent
=
const EventStreamProvider<MouseEvent>
('mouseenter') -
constStatic factory designed to expose
mouseenter
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseLeaveEvent
=
const EventStreamProvider<MouseEvent>
('mouseleave') -
constStatic factory designed to expose
mouseleave
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseMoveEvent
=
const EventStreamProvider<MouseEvent>
('mousemove') -
constStatic factory designed to expose
mousemove
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseOutEvent
=
const EventStreamProvider<MouseEvent>
('mouseout') -
constStatic factory designed to expose
mouseout
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseOverEvent
=
const EventStreamProvider<MouseEvent>
('mouseover') -
constStatic factory designed to expose
mouseover
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<MouseEvent>
mouseUpEvent
=
const EventStreamProvider<MouseEvent>
('mouseup') -
constStatic factory designed to expose
mouseup
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<WheelEvent>
mouseWheelEvent
=
const EventStreamProvider<WheelEvent>
('mousewheel') -
const
-
EventStreamProvider<Event>
pasteEvent
=
const EventStreamProvider<Event>
('paste') -
constStatic factory designed to expose
paste
events to event handlers that are not necessarily instances of Element. -
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') -
constStatic factory designed to expose
reset
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
resizeEvent
=
const EventStreamProvider<Event>
('resize') -
const
-
EventStreamProvider<Event>
scrollEvent
=
const EventStreamProvider<Event>
('scroll') -
constStatic factory designed to expose
scroll
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
searchEvent
=
const EventStreamProvider<Event>
('search') -
constStatic factory designed to expose
search
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
seekedEvent
=
const EventStreamProvider<Event>
('seeked') -
const
-
EventStreamProvider<Event>
seekingEvent
=
const EventStreamProvider<Event>
('seeking') -
const
-
EventStreamProvider<Event>
selectEvent
=
const EventStreamProvider<Event>
('select') -
constStatic factory designed to expose
select
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
selectStartEvent
=
const EventStreamProvider<Event>
('selectstart') -
constStatic factory designed to expose
selectstart
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
stalledEvent
=
const EventStreamProvider<Event>
('stalled') -
const
-
EventStreamProvider<Event>
submitEvent
=
const EventStreamProvider<Event>
('submit') -
constStatic factory designed to expose
submit
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<Event>
suspendEvent
=
const EventStreamProvider<Event>
('suspend') -
const
-
EventStreamProvider<Event>
timeUpdateEvent
=
const EventStreamProvider<Event>
('timeupdate') -
const
-
EventStreamProvider<TouchEvent>
touchCancelEvent
=
const EventStreamProvider<TouchEvent>
('touchcancel') -
constStatic factory designed to expose
touchcancel
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TouchEvent>
touchEndEvent
=
const EventStreamProvider<TouchEvent>
('touchend') -
constStatic factory designed to expose
touchend
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TouchEvent>
touchEnterEvent
=
const EventStreamProvider<TouchEvent>
('touchenter') -
constStatic factory designed to expose
touchenter
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TouchEvent>
touchLeaveEvent
=
const EventStreamProvider<TouchEvent>
('touchleave') -
constStatic factory designed to expose
touchleave
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TouchEvent>
touchMoveEvent
=
const EventStreamProvider<TouchEvent>
('touchmove') -
constStatic factory designed to expose
touchmove
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TouchEvent>
touchStartEvent
=
const EventStreamProvider<TouchEvent>
('touchstart') -
constStatic factory designed to expose
touchstart
events to event handlers that are not necessarily instances of Element. -
EventStreamProvider<TransitionEvent>
transitionEndEvent
=
const EventStreamProvider<TransitionEvent>
('transitionend') -
const
-
EventStreamProvider<Event>
volumeChangeEvent
=
const EventStreamProvider<Event>
('volumechange') -
const
-
EventStreamProvider<Event>
waitingEvent
=
const EventStreamProvider<Event>
('waiting') -
const
Static Methods
-
isTagSupported(
String tag) → bool - Checks to see if the tag name is supported by the current platform.
Properties
- Map<String,String> attributes
-
read / writeAll attributes on this element.
- String baseUri
-
read-only, inherited
- CssRect borderEdge
-
read-onlyAccess the dimensions and position of this element's content + padding + border box.
- List<Node> childNodes
-
read-only, inheritedA list of this node's children.
- List<Element> children
-
read / writeList of the direct children of this element.
- CssClassSet classes
-
read / writeThe set of CSS classes applied to this element.
- String className
-
read / write
- Rectangle client
-
read-onlyGets the position of this element relative to the client area of the page.
- int clientHeight
-
read-only
- int clientLeft
-
read-only
- int clientTop
-
read-only
- int clientWidth
-
read-only
- CssRect contentEdge
-
read-onlyAccess this element's content position.
- String contentEditable
-
read / write
- MenuElement contextMenu
-
read / write
- Map<String,String> dataset
-
read / writeAllows access to all custom data attributes (data-*) set on this element.
- String dir
-
read / write
- Point documentOffset
-
read-onlyProvides the coordinates of the element relative to the top of the document.
- bool draggable
-
read / write
- String dropzone
-
read / write
- Node firstChild
-
read-only, inheritedThe first child of this node.
-
read / write
- String id
-
read / write
- String innerHtml
-
read / writeParses the HTML fragment and sets it as the contents of this element.
- bool isContentEditable
-
read-only
- String lang
-
read / write
- Node lastChild
-
read-only, inheritedThe last child of this node.
- String localName
-
read-only
- CssRect marginEdge
-
read-onlyAccess the dimensions and position of this element's content + padding + border + margin box.
- String namespaceUri
-
read-onlyA URI that identifies the XML namespace of this element.
- Element nextElementSibling
-
read-only
- Node nextNode
-
read-only, inheritedThe next sibling node.
- String nodeName
-
read-only, inheritedThe name of this node.
- List<Node> nodes
-
read / write, inheritedA modifiable list of this node's children.
- int nodeType
-
read-only, inheritedThe type of node.
- String nodeValue
-
read-only, inheritedThe value of this node.
- Rectangle offset
-
read-onlyGets the offset of this element relative to its offsetParent.
- int offsetHeight
-
read-only
- int offsetLeft
-
read-only
- Element offsetParent
-
read-only
- int offsetTop
-
read-only
- int offsetWidth
-
read-only
- ElementEvents on
-
read-onlyThis 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-onlyStream of
abort
events handled by thisElement
. - ElementStream<Event> onBeforeCopy
-
read-onlyStream of
beforecopy
events handled by thisElement
. - ElementStream<Event> onBeforeCut
-
read-onlyStream of
beforecut
events handled by thisElement
. - ElementStream<Event> onBeforePaste
-
read-onlyStream of
beforepaste
events handled by thisElement
. - ElementStream<Event> onBlur
-
read-onlyStream of
blur
events handled by thisElement
. - ElementStream<Event> onCanPlay
-
read-only
- ElementStream<Event> onCanPlayThrough
-
read-only
- ElementStream<Event> onChange
-
read-onlyStream of
change
events handled by thisElement
. - ElementStream<MouseEvent> onClick
-
read-onlyStream of
click
events handled by thisElement
. - ElementStream<MouseEvent> onContextMenu
-
read-onlyStream of
contextmenu
events handled by thisElement
. - ElementStream<Event> onCopy
-
read-onlyStream of
copy
events handled by thisElement
. - ElementStream<Event> onCut
-
read-onlyStream of
cut
events handled by thisElement
. - ElementStream<Event> onDoubleClick
-
read-onlyStream of
doubleclick
events handled by thisElement
. - ElementStream<MouseEvent> onDrag
-
read-onlyA stream of
drag
events fired when this element currently being dragged. - ElementStream<MouseEvent> onDragEnd
-
read-onlyA stream of
dragend
events fired when this element completes a drag operation. - ElementStream<MouseEvent> onDragEnter
-
read-onlyA stream of
dragenter
events fired when a dragged object is first dragged over this element. - ElementStream<MouseEvent> onDragLeave
-
read-onlyA stream of
dragleave
events fired when an object being dragged over this element leaves this element's target area. - ElementStream<MouseEvent> onDragOver
-
read-onlyA stream of
dragover
events fired when a dragged object is currently being dragged over this element. - ElementStream<MouseEvent> onDragStart
-
read-onlyA stream of
dragstart
events fired when this element starts being dragged. - ElementStream<MouseEvent> onDrop
-
read-onlyA stream of
drop
events fired when a dragged object is dropped on this element. - ElementStream<Event> onDurationChange
-
read-only
- ElementStream<Event> onEmptied
-
read-only
- ElementStream<Event> onEnded
-
read-only
- ElementStream<Event> onError
-
read-onlyStream of
error
events handled by thisElement
. - ElementStream<Event> onFocus
-
read-onlyStream of
focus
events handled by thisElement
. - ElementStream<Event> onFullscreenChange
-
read-onlyStream of
fullscreenchange
events handled by thisElement
. - ElementStream<Event> onFullscreenError
-
read-onlyStream of
fullscreenerror
events handled by thisElement
. - ElementStream<Event> onInput
-
read-onlyStream of
input
events handled by thisElement
. - ElementStream<Event> onInvalid
-
read-onlyStream of
invalid
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyDown
-
read-onlyStream of
keydown
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyPress
-
read-onlyStream of
keypress
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyUp
-
read-onlyStream of
keyup
events handled by thisElement
. - ElementStream<Event> onLoad
-
read-onlyStream of
load
events handled by thisElement
. - ElementStream<Event> onLoadedData
-
read-only
- ElementStream<Event> onLoadedMetadata
-
read-only
- ElementStream<MouseEvent> onMouseDown
-
read-onlyStream of
mousedown
events handled by thisElement
. - ElementStream<MouseEvent> onMouseEnter
-
read-onlyStream of
mouseenter
events handled by thisElement
. - ElementStream<MouseEvent> onMouseLeave
-
read-onlyStream of
mouseleave
events handled by thisElement
. - ElementStream<MouseEvent> onMouseMove
-
read-onlyStream of
mousemove
events handled by thisElement
. - ElementStream<MouseEvent> onMouseOut
-
read-onlyStream of
mouseout
events handled by thisElement
. - ElementStream<MouseEvent> onMouseOver
-
read-onlyStream of
mouseover
events handled by thisElement
. - ElementStream<MouseEvent> onMouseUp
-
read-onlyStream of
mouseup
events handled by thisElement
. - ElementStream<WheelEvent> onMouseWheel
-
read-onlyStream of
mousewheel
events handled by thisElement
. - ElementStream<Event> onPaste
-
read-onlyStream of
paste
events handled by thisElement
. - ElementStream<Event> onPause
-
read-only
- ElementStream<Event> onPlay
-
read-only
- ElementStream<Event> onPlaying
-
read-only
- ElementStream<Event> onRateChange
-
read-only
- ElementStream<Event> onReset
-
read-onlyStream of
reset
events handled by thisElement
. - ElementStream<Event> onResize
-
read-only
- ElementStream<Event> onScroll
-
read-onlyStream of
scroll
events handled by thisElement
. - ElementStream<Event> onSearch
-
read-onlyStream of
search
events handled by thisElement
. - ElementStream<Event> onSeeked
-
read-only
- ElementStream<Event> onSeeking
-
read-only
- ElementStream<Event> onSelect
-
read-onlyStream of
select
events handled by thisElement
. - ElementStream<Event> onSelectStart
-
read-onlyStream of
selectstart
events handled by thisElement
. - ElementStream<Event> onStalled
-
read-only
- ElementStream<Event> onSubmit
-
read-onlyStream of
submit
events handled by thisElement
. - ElementStream<Event> onSuspend
-
read-only
- ElementStream<Event> onTimeUpdate
-
read-only
- ElementStream<TouchEvent> onTouchCancel
-
read-onlyStream of
touchcancel
events handled by thisElement
. - ElementStream<TouchEvent> onTouchEnd
-
read-onlyStream of
touchend
events handled by thisElement
. - ElementStream<TouchEvent> onTouchEnter
-
read-onlyStream of
touchenter
events handled by thisElement
. - ElementStream<TouchEvent> onTouchLeave
-
read-onlyStream of
touchleave
events handled by thisElement
. - ElementStream<TouchEvent> onTouchMove
-
read-onlyStream of
touchmove
events handled by thisElement
. - ElementStream<TouchEvent> onTouchStart
-
read-onlyStream of
touchstart
events handled by thisElement
. - ElementStream<TransitionEvent> onTransitionEnd
-
read-onlyStream of
transitionend
events handled by thisElement
. - ElementStream<Event> onVolumeChange
-
read-only
- ElementStream<Event> onWaiting
-
read-only
- String outerHtml
-
read-only
- Document ownerDocument
-
read-only, inheritedThe document this node belongs to.
- CssRect paddingEdge
-
read-onlyAccess the dimensions and position of this element's content + padding box.
- Element parent
-
read-only, inheritedThe parent element of this node.
- Node parentNode
-
read-only, inheritedThe parent node of this node.
- Element previousElementSibling
-
read-only
- Node previousNode
-
read-only, inheritedThe previous sibling node.
- int scrollHeight
-
read-only
- int scrollLeft
-
read / write
- int scrollTop
-
read / write
- int scrollWidth
-
read-only
- ShadowRoot shadowRoot
-
read-only
- bool spellcheck
-
read / write
- CssStyleDeclaration style
-
read-only
- int tabIndex
-
read / write
- String tagName
-
read-only
- String text
-
read / write, inheritedAll text within this node and its decendents.
- String title
-
read / write
- bool translate
-
read / write
- dynamic xtag
-
read / writeExperimental 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
- Element.a()
-
Creates a new
<a>
element. - Element.article()
-
Creates a new
<article>
element. - Element.aside()
-
Creates a new
<aside>
element. - Element.audio()
-
Creates a new
<audio>
element. - Element.br()
-
Creates a new
<br>
element. - Element.canvas()
-
Creates a new
<canvas>
element. - Element.created()
- Custom element creation constructor.
- Element.div()
-
Creates a new
<div>
element. -
Creates a new
<footer>
element. - Element.header()
-
Creates a new
<header>
element. - Element.hr()
-
Creates a new
<hr>
element. - Element.html(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer})
- Creates an HTML element from a valid fragment of HTML.
- Element.iframe()
-
Creates a new
<iframe>
element. - Element.img()
-
Creates a new
<img>
element. - Element.li()
-
Creates a new
<li>
element. -
Creates a new
<nav>
element. - Element.ol()
-
Creates a new
<ol>
element. - Element.option()
-
Creates a new
<option>
element. - Element.p()
-
Creates a new
<p>
element. - Element.pre()
-
Creates a new
<pre>
element. - Element.section()
-
Creates a new
<section>
element. - Element.select()
-
Creates a new
<select>
element. - Element.span()
-
Creates a new
<span>
element. - Element.svg()
-
Creates a new
<svg>
element. - Element.table()
-
Creates a new
<table>
element. - Element.tag(String tag, [String typeExtention])
- Creates the HTML element specified by the tag name.
- Element.td()
-
Creates a new
<td>
element. - Element.textarea()
-
Creates a new
<textarea>
element. - Element.th()
-
Creates a new
<th>
element. - Element.tr()
-
Creates a new
<tr>
element. - Element.ul()
-
Creates a new
<ul>
element. - Element.video()
-
Creates a new
<video>
element.
Methods
-
addEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
animate(
Object effect, [Object timing]) → AnimationPlayer -
append(
Node newChild) → Node -
inheritedAdds a node to the end of the child nodes list of this node.
-
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.
-
blur(
) → void -
click(
) → void -
clone(
bool deep) → Node -
inheritedReturns a copy of this node.
-
contains(
Node other) → bool -
inheritedReturns true if this node contains the specified node.
-
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(
) → 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 -
getAnimationPlayers(
) → List<AnimationPlayer> -
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 -
inheritedReturns true if this node has any children.
-
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 -
inheritedInserts all of the nodes into this node directly before refChild.
-
insertBefore(
Node newChild, Node refChild) → Node -
inheritedInserts all of the nodes into this node directly before refChild.
-
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.
-
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, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
replaceWith(
Node otherNode) → Node -
inheritedReplaces this node with another node.
-
requestFullscreen(
) → void -
requestPointerLock(
) → void -
scrollIntoView(
[ScrollAlignment alignment]) → void - Scrolls this element into view.
-
setAttribute(
String name, String value) → void -
setAttributeNS(
String namespaceURI, String qualifiedName, 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.