HtmlElement class

Inheritance
Implements
Implemented by
Annotations
  • @DocsEditable()
  • @DomName('HTMLElement')

Constants

abortEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.abortEvent'), @Experimental()
const EventStreamProvider<Event>('abort')
blurEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.blurEvent'), @Experimental()
const EventStreamProvider<Event>('blur')
canPlayEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.canplayEvent'), @Experimental()
const EventStreamProvider<Event>('canplay')
canPlayThroughEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.canplaythroughEvent'), @Experimental()
const EventStreamProvider<Event>('canplaythrough')
changeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.changeEvent'), @Experimental()
const EventStreamProvider<Event>('change')
clickEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.clickEvent'), @Experimental()
contextMenuEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.contextmenuEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('contextmenu')
doubleClickEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.dblclickEvent'), @Experimental()
const EventStreamProvider<Event>('dblclick')
dragEndEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragendEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragend')
dragEnterEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragenterEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragenter')
dragEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragEvent'), @Experimental()
dragLeaveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragleaveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragleave')
dragOverEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragoverEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragover')
dragStartEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dragstartEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('dragstart')
dropEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.dropEvent'), @Experimental()
durationChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.durationchangeEvent'), @Experimental()
const EventStreamProvider<Event>('durationchange')
emptiedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.emptiedEvent'), @Experimental()
const EventStreamProvider<Event>('emptied')
endedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.endedEvent'), @Experimental()
const EventStreamProvider<Event>('ended')
errorEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.errorEvent'), @Experimental()
const EventStreamProvider<Event>('error')
focusEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.focusEvent'), @Experimental()
const EventStreamProvider<Event>('focus')
inputEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.inputEvent'), @Experimental()
const EventStreamProvider<Event>('input')
invalidEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.invalidEvent'), @Experimental()
const EventStreamProvider<Event>('invalid')
keyDownEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.keydownEvent'), @Experimental()
keyPressEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.keypressEvent'), @Experimental()
const EventStreamProvider<KeyboardEvent>('keypress')
keyUpEventEventStreamProvider<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.keyupEvent'), @Experimental()
loadedDataEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.loadeddataEvent'), @Experimental()
const EventStreamProvider<Event>('loadeddata')
loadedMetadataEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.loadedmetadataEvent'), @Experimental()
const EventStreamProvider<Event>('loadedmetadata')
loadEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.loadEvent'), @Experimental()
const EventStreamProvider<Event>('load')
mouseDownEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mousedownEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mousedown')
mouseEnterEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mouseenterEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseenter')
mouseLeaveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mouseleaveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseleave')
mouseMoveEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mousemoveEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mousemove')
mouseOutEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mouseoutEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseout')
mouseOverEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mouseoverEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseover')
mouseUpEventEventStreamProvider<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.mouseupEvent'), @Experimental()
const EventStreamProvider<MouseEvent>('mouseup')
mouseWheelEventEventStreamProvider<WheelEvent>
@DocsEditable(), @DomName('HTMLElement.mousewheelEvent'), @Experimental()
const EventStreamProvider<WheelEvent>('mousewheel')
pauseEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.pauseEvent'), @Experimental()
const EventStreamProvider<Event>('pause')
playEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.playEvent'), @Experimental()
const EventStreamProvider<Event>('play')
playingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.playingEvent'), @Experimental()
const EventStreamProvider<Event>('playing')
rateChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.ratechangeEvent'), @Experimental()
const EventStreamProvider<Event>('ratechange')
resetEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.resetEvent'), @Experimental()
const EventStreamProvider<Event>('reset')
resizeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.resizeEvent'), @Experimental()
const EventStreamProvider<Event>('resize')
scrollEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.scrollEvent'), @Experimental()
const EventStreamProvider<Event>('scroll')
seekedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.seekedEvent'), @Experimental()
const EventStreamProvider<Event>('seeked')
seekingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.seekingEvent'), @Experimental()
const EventStreamProvider<Event>('seeking')
selectEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.selectEvent'), @Experimental()
const EventStreamProvider<Event>('select')
stalledEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.stalledEvent'), @Experimental()
const EventStreamProvider<Event>('stalled')
submitEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.submitEvent'), @Experimental()
const EventStreamProvider<Event>('submit')
suspendEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.suspendEvent'), @Experimental()
const EventStreamProvider<Event>('suspend')
timeUpdateEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.timeupdateEvent'), @Experimental()
const EventStreamProvider<Event>('timeupdate')
touchCancelEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.touchcancelEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchcancel')
touchEndEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.touchendEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchend')
touchMoveEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.touchmoveEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchmove')
touchStartEventEventStreamProvider<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.touchstartEvent'), @Experimental()
const EventStreamProvider<TouchEvent>('touchstart')
volumeChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.volumechangeEvent'), @Experimental()
const EventStreamProvider<Event>('volumechange')
waitingEventEventStreamProvider<Event>
@DocsEditable(), @DomName('HTMLElement.waitingEvent'), @Experimental()
const EventStreamProvider<Event>('waiting')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

HtmlElement.created()

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

HtmlElement.internal_()

Properties

contentEditableString
@DocsEditable(), @DomName('HTMLElement.contentEditable'), read / write
contextMenuMenuElement
@DocsEditable(), @DomName('HTMLElement.contextMenu'), @Experimental(), read / write
dirString
@DocsEditable(), @DomName('HTMLElement.dir'), read / write
draggablebool
@DocsEditable(), @DomName('HTMLElement.draggable'), read / write
dropzoneString
@DocsEditable(), @DomName('HTMLElement.webkitdropzone'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI), read / write
hiddenbool
@DocsEditable(), @DomName('HTMLElement.hidden'), read / write
isContentEditablebool
@DocsEditable(), @DomName('HTMLElement.isContentEditable'), read-only
langString
@DocsEditable(), @DomName('HTMLElement.lang'), read / write
onAbortElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onabort'), @Experimental(), read-only
onBlurElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onblur'), @Experimental(), read-only
onCanPlayElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.oncanplay'), @Experimental(), read-only
onCanPlayThroughElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.oncanplaythrough'), @Experimental(), read-only
onChangeElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onchange'), @Experimental(), read-only
onClickElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onclick'), @Experimental(), read-only
onContextMenuElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.oncontextmenu'), @Experimental(), read-only
onDoubleClickElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.ondblclick'), @Experimental(), read-only
onDragElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondrag'), @Experimental(), read-only
onDragEndElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondragend'), @Experimental(), read-only
onDragEnterElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondragenter'), @Experimental(), read-only
onDragLeaveElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondragleave'), @Experimental(), read-only
onDragOverElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondragover'), @Experimental(), read-only
onDragStartElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondragstart'), @Experimental(), read-only
onDropElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.ondrop'), @Experimental(), read-only
onDurationChangeElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.ondurationchange'), @Experimental(), read-only
onEmptiedElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onemptied'), @Experimental(), read-only
onEndedElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onended'), @Experimental(), read-only
onErrorElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onerror'), @Experimental(), read-only
onFocusElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onfocus'), @Experimental(), read-only
onInputElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.oninput'), @Experimental(), read-only
onInvalidElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.oninvalid'), @Experimental(), read-only
onKeyDownElementStream<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.onkeydown'), @Experimental(), read-only
onKeyPressElementStream<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.onkeypress'), @Experimental(), read-only
onKeyUpElementStream<KeyboardEvent>
@DocsEditable(), @DomName('HTMLElement.onkeyup'), @Experimental(), read-only
onLoadElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onload'), @Experimental(), read-only
onLoadedDataElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onloadeddata'), @Experimental(), read-only
onLoadedMetadataElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onloadedmetadata'), @Experimental(), read-only
onMouseDownElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmousedown'), @Experimental(), read-only
onMouseEnterElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmouseenter'), @Experimental(), read-only
onMouseLeaveElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmouseleave'), @Experimental(), read-only
onMouseMoveElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmousemove'), @Experimental(), read-only
onMouseOutElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmouseout'), @Experimental(), read-only
onMouseOverElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmouseover'), @Experimental(), read-only
onMouseUpElementStream<MouseEvent>
@DocsEditable(), @DomName('HTMLElement.onmouseup'), @Experimental(), read-only
onMouseWheelElementStream<WheelEvent>
@DocsEditable(), @DomName('HTMLElement.onmousewheel'), @Experimental(), read-only
onPauseElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onpause'), @Experimental(), read-only
onPlayElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onplay'), @Experimental(), read-only
onPlayingElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onplaying'), @Experimental(), read-only
onRateChangeElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onratechange'), @Experimental(), read-only
onResetElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onreset'), @Experimental(), read-only
onResizeElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onresize'), @Experimental(), read-only
onScrollElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onscroll'), @Experimental(), read-only
onSeekedElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onseeked'), @Experimental(), read-only
onSeekingElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onseeking'), @Experimental(), read-only
onSelectElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onselect'), @Experimental(), read-only
onStalledElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onstalled'), @Experimental(), read-only
onSubmitElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onsubmit'), @Experimental(), read-only
onSuspendElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onsuspend'), @Experimental(), read-only
onTimeUpdateElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.ontimeupdate'), @Experimental(), read-only
onTouchCancelElementStream<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.ontouchcancel'), @Experimental(), read-only
onTouchEndElementStream<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.ontouchend'), @Experimental(), read-only
onTouchMoveElementStream<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.ontouchmove'), @Experimental(), read-only
onTouchStartElementStream<TouchEvent>
@DocsEditable(), @DomName('HTMLElement.ontouchstart'), @Experimental(), read-only
onVolumeChangeElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onvolumechange'), @Experimental(), read-only
onWaitingElementStream<Event>
@DocsEditable(), @DomName('HTMLElement.onwaiting'), @Experimental(), read-only
spellcheckbool
@DocsEditable(), @DomName('HTMLElement.spellcheck'), @Experimental(), read / write
styleCssStyleDeclaration
@DocsEditable(), @DomName('HTMLElement.style'), @Experimental(), read-only
tabIndexint
@DocsEditable(), @DomName('HTMLElement.tabIndex'), read / write
titleString
@DocsEditable(), @DomName('HTMLElement.title'), read / write
translatebool
@DocsEditable(), @DomName('HTMLElement.translate'), read / write
assignedSlotSlotElement
@DocsEditable(), @DomName('Element.assignedSlot'), @Experimental(), read-only, inherited
attributesMap<String, String>
read / write, inherited

All attributes on this element.

baseUriString
@DocsEditable(), @DomName('Node.baseURI'), read-only, inherited
borderEdgeCssRect
@Experimental(), read-only, inherited

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

childNodesList<Node>
@DocsEditable(), @DomName('Node.childNodes'), read-only, inherited

A list of this node's children.

childrenList<Element>
read / write, inherited

List of the direct children of this element.

classesCssClassSet
read / write, inherited

The set of CSS classes applied to this element.

classNameString
@DocsEditable(), @DomName('Element.className'), read / write, inherited
clientRectangle
read-only, inherited

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

clientHeightint
@DocsEditable(), @DomName('Element.clientHeight'), read-only, inherited
clientLeftint
@DocsEditable(), @DomName('Element.clientLeft'), read-only, inherited
clientTopint
@DocsEditable(), @DomName('Element.clientTop'), read-only, inherited
clientWidthint
@DocsEditable(), @DomName('Element.clientWidth'), read-only, inherited
computedNameString
@DocsEditable(), @DomName('Element.computedName'), @Experimental(), read-only, inherited
computedRoleString
@DocsEditable(), @DomName('Element.computedRole'), @Experimental(), read-only, inherited
contentEdgeCssRect
@Experimental(), read-only, inherited

Access this element's content position.

datasetMap<String, String>
read / write, inherited

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

documentOffsetPoint
@Experimental(), read-only, inherited

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

firstChildNode
@DocsEditable(), @DomName('Node.firstChild'), read-only, inherited

The first child of this node.

hashCodeint
read-only, inherited
idString
@DocsEditable(), @DomName('Element.id'), read / write, inherited
innerHtmlString
read / write, inherited

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

lastChildNode
@DocsEditable(), @DomName('Node.lastChild'), read-only, inherited

The last child of this node.

localNameString
@DocsEditable(), @DomName('Element.localName'), read-only, inherited
marginEdgeCssRect
@Experimental(), read-only, inherited

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

namespaceUriString
@DomName('Element.namespaceUri'), read-only, inherited

A URI that identifies the XML namespace of this element.

nextElementSiblingElement
@DocsEditable(), @DomName('Element.nextElementSibling'), read-only, inherited
nextNodeNode
@DocsEditable(), @DomName('Node.nextSibling'), read-only, inherited

The next sibling node.

nodeNameString
@DocsEditable(), @DomName('Node.nodeName'), read-only, inherited

The name of this node.

nodesList<Node>
read / write, inherited

A modifiable list of this node's children.

nodeTypeint
@DocsEditable(), @DomName('Node.nodeType'), read-only, inherited

The type of node.

nodeValueString
@DocsEditable(), @DomName('Node.nodeValue'), read-only, inherited

The value of this node.

offsetRectangle
read-only, inherited

Gets the offset of this element relative to its offsetParent.

offsetHeightint
@DocsEditable(), @DomName('Element.offsetHeight'), read-only, inherited
offsetLeftint
@DocsEditable(), @DomName('Element.offsetLeft'), read-only, inherited
offsetParentElement
@DocsEditable(), @DomName('Element.offsetParent'), read-only, inherited
offsetTopint
@DocsEditable(), @DomName('Element.offsetTop'), read-only, inherited
offsetWidthint
@DocsEditable(), @DomName('Element.offsetWidth'), read-only, inherited
onElementEvents
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.

onBeforeCopyElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforecopy'), read-only, inherited

Stream of beforecopy events handled by this Element.

onBeforeCutElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforecut'), read-only, inherited

Stream of beforecut events handled by this Element.

onBeforePasteElementStream<Event>
@DocsEditable(), @DomName('Element.onbeforepaste'), read-only, inherited

Stream of beforepaste events handled by this Element.

onCopyElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.oncopy'), read-only, inherited

Stream of copy events handled by this Element.

onCutElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.oncut'), read-only, inherited

Stream of cut events handled by this Element.

onFullscreenChangeElementStream<Event>
@DocsEditable(), @DomName('Element.onwebkitfullscreenchange'), @Experimental(), read-only, inherited

Stream of fullscreenchange events handled by this Element.

onFullscreenErrorElementStream<Event>
@DocsEditable(), @DomName('Element.onwebkitfullscreenerror'), @Experimental(), read-only, inherited

Stream of fullscreenerror events handled by this Element.

onPasteElementStream<ClipboardEvent>
@DocsEditable(), @DomName('Element.onpaste'), read-only, inherited

Stream of paste events handled by this Element.

onSearchElementStream<Event>
@DocsEditable(), @DomName('Element.onsearch'), @Experimental(), read-only, inherited

Stream of search events handled by this Element.

onSelectStartElementStream<Event>
@DocsEditable(), @DomName('Element.onselectstart'), @Experimental(), read-only, inherited

Stream of selectstart events handled by this Element.

onTouchEnterElementStream<TouchEvent>
@DocsEditable(), @DomName('Element.ontouchenter'), @Experimental(), read-only, inherited

Stream of touchenter events handled by this Element.

onTouchLeaveElementStream<TouchEvent>
@DocsEditable(), @DomName('Element.ontouchleave'), @Experimental(), read-only, inherited

Stream of touchleave events handled by this Element.

onTransitionEndElementStream<TransitionEvent>
@DocsEditable(), @DomName('Element.ontransitionend'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), @SupportedBrowser(SupportedBrowser.SAFARI), read-only, inherited

Stream of transitionend events handled by this Element.

outerHtmlString
@DocsEditable(), @DomName('Element.outerHTML'), read-only, inherited
ownerDocumentDocument
@DocsEditable(), @DomName('Node.ownerDocument'), read-only, inherited

The document this node belongs to.

paddingEdgeCssRect
@Experimental(), read-only, inherited

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

parentElement
@DocsEditable(), @DomName('Node.parentElement'), read-only, inherited

The parent element of this node.

parentNodeNode
@DocsEditable(), @DomName('Node.parentNode'), read-only, inherited

The parent node of this node.

previousElementSiblingElement
@DocsEditable(), @DomName('Element.previousElementSibling'), read-only, inherited
previousNodeNode
@DocsEditable(), @DomName('Node.previousSibling'), read-only, inherited

The previous sibling node.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

scrollHeightint
@DocsEditable(), @DomName('Element.scrollHeight'), read-only, inherited
scrollLeftint
@DocsEditable(), @DomName('Element.scrollLeft'), read / write, inherited
scrollTopint
@DocsEditable(), @DomName('Element.scrollTop'), read / write, inherited
scrollWidthint
@DocsEditable(), @DomName('Element.scrollWidth'), read-only, inherited
shadowRootShadowRoot
@DocsEditable(), @DomName('Element.shadowRoot'), @Experimental(), read-only, inherited
slotString
@DocsEditable(), @DomName('Element.slot'), @Experimental(), read / write, inherited
tagNameString
@DocsEditable(), @DomName('Element.tagName'), read-only, inherited
textString
@DocsEditable(), @DomName('Node.textContent'), read / write, inherited

All text within this node and its descendents.

treeRootNode
@DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only, inherited
xtag → dynamic
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.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

blur() → void
@DocsEditable(), @DomName('HTMLElement.blur'), @Experimental()
click() → void
@DocsEditable(), @DomName('HTMLElement.click')
focus() → void
@DocsEditable(), @DomName('HTMLElement.focus'), @Experimental()
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
animate(Iterable<Map<String, dynamic>> frames, [ timing ]) → Animation
@Experimental(), @SupportedBrowser(SupportedBrowser.CHROME, '36'), inherited

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
@DocsEditable(), @DomName('Node.appendChild'), 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
@Experimental(), inherited

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

attachShadow(Map shadowRootInitDict) → ShadowRoot
@DocsEditable(), @DomName('Element.attachShadow'), @Experimental(), inherited
attributeChanged(String name, String oldValue, String newValue) → void
inherited

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

clone(bool deep) → Node
@DocsEditable(), @DomName('Node.cloneNode'), inherited

Returns a copy of this node.

closest(String selectors) → Element
@DocsEditable(), @DomName('Element.closest'), @Experimental(), inherited
contains(Node other) → bool
@DocsEditable(), @DomName('Node.contains'), 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
@DocsEditable(), @DomName('Element.createShadowRoot'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME, '25'), inherited
detached() → void
@Experimental(), inherited

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

dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
enteredView() → void
@Experimental(), inherited

Deprecated*: override attached instead.

getAnimations() → List<Animation>
@DocsEditable(), @DomName('Element.getAnimations'), @Experimental(), inherited
getAttribute(String name) → String
@DocsEditable(), @DomName('Element.getAttribute'), @Experimental(), inherited
getAttributeNS(String namespaceURI, String localName) → String
@DocsEditable(), @DomName('Element.getAttributeNS'), @Experimental(), inherited
getBoundingClientRect() → Rectangle
@DocsEditable(), @DomName('Element.getBoundingClientRect'), inherited

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

getClientRects() → List<Rectangle>
@DocsEditable(), @DomName('Element.getClientRects'), 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>
@DocsEditable(), @DomName('Element.getDestinationInsertionPoints'), @Experimental(), inherited

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

getElementsByClassName(String classNames) → List<Node>
@DocsEditable(), @DomName('Element.getElementsByClassName'), 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
@DocsEditable(), @DomName('Node.hasChildNodes'), inherited

Returns true if this node has any children.

insertAdjacentElement(String where, Element element) → Element
@DocsEditable(), @DomName('Element.insertAdjacentElement'), @Experimental(), 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
@DocsEditable(), @DomName('Element.insertAdjacentText'), @Experimental(), inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited

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

insertBefore(Node node, Node child) → Node
@DocsEditable(), @DomName('Node.insertBefore'), inherited

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

leftView() → void
@Experimental(), inherited

Deprecated*: override detached instead.

matches(String selectors) → bool
@DocsEditable(), @DomName('Element.matches'), @Experimental(), inherited
matchesWithAncestors(String selectors) → bool
@Experimental(), inherited

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

noSuchMethod(Invocation invocation) → dynamic
inherited

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

offsetTo(Element parent) → Point
@Experimental(), inherited

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

query(String relativeSelectors) → Element
@DomName('Element.querySelector'), @Experimental(), inherited

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

queryAll(String relativeSelectors) → ElementList<Element>
@DomName('Element.querySelectorAll'), @Experimental(), inherited

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

querySelector(String selectors) → Element
@DocsEditable(), @DomName('Element.querySelector'), inherited

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

querySelectorAll(String selectors) → ElementList<Element>
@DomName('Element.querySelectorAll'), inherited

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

remove() → void
@DocsEditable(), @DomName('Element.remove'), inherited

Removes this node from the DOM.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
replaceWith(Node otherNode) → Node
@DomName('Node.replaceChild'), inherited

Replaces this node with another node.

requestFullscreen() → void
@DocsEditable(), @DomName('Element.requestFullscreen'), @Experimental(), inherited
requestPointerLock() → void
@DocsEditable(), @DomName('Element.requestPointerLock'), @Experimental(), inherited
scroll([options_OR_x, num y ]) → void
inherited
scrollBy([options_OR_x, num y ]) → void
inherited
scrollIntoView([ScrollAlignment alignment ]) → void
inherited

Scrolls this element into view.

scrollTo([options_OR_x, num y ]) → void
inherited
setApplyScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
@DocsEditable(), @DomName('Element.setApplyScroll'), @Experimental(), inherited
setAttribute(String name, String value) → void
@DocsEditable(), @DomName('Element.setAttribute'), inherited
setAttributeNS(String namespaceURI, String name, String value) → void
@DocsEditable(), @DomName('Element.setAttributeNS'), inherited
setDistributeScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
@DocsEditable(), @DomName('Element.setDistributeScroll'), @Experimental(), 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.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/HtmlElement-class.html