Skip to main content

Interface: HTMLElement

Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.

MDN Reference

Extends

  • Element.ElementCSSInlineStyle.ElementContentEditable.GlobalEventHandlers.HTMLOrSVGElement

Extended by

Properties

__evolv__

__evolv__: MutateContext

Inherited from

Element.__evolv__


accessKey

accessKey: string

MDN Reference


accessKeyLabel

readonly accessKeyLabel: string

MDN Reference


ariaAtomic

ariaAtomic: null | string

MDN Reference

Inherited from

Element.ariaAtomic


ariaAutoComplete

ariaAutoComplete: null | string

MDN Reference

Inherited from

Element.ariaAutoComplete


ariaBrailleLabel

ariaBrailleLabel: null | string

MDN Reference

Inherited from

Element.ariaBrailleLabel


ariaBrailleRoleDescription

ariaBrailleRoleDescription: null | string

MDN Reference

Inherited from

Element.ariaBrailleRoleDescription


ariaBusy

ariaBusy: null | string

MDN Reference

Inherited from

Element.ariaBusy


ariaChecked

ariaChecked: null | string

MDN Reference

Inherited from

Element.ariaChecked


ariaColCount

ariaColCount: null | string

MDN Reference

Inherited from

Element.ariaColCount


ariaColIndex

ariaColIndex: null | string

MDN Reference

Inherited from

Element.ariaColIndex


ariaColSpan

ariaColSpan: null | string

MDN Reference

Inherited from

Element.ariaColSpan


ariaCurrent

ariaCurrent: null | string

MDN Reference

Inherited from

Element.ariaCurrent


ariaDescription

ariaDescription: null | string

MDN Reference

Inherited from

Element.ariaDescription


ariaDisabled

ariaDisabled: null | string

MDN Reference

Inherited from

Element.ariaDisabled


ariaExpanded

ariaExpanded: null | string

MDN Reference

Inherited from

Element.ariaExpanded


ariaHasPopup

ariaHasPopup: null | string

MDN Reference

Inherited from

Element.ariaHasPopup


ariaHidden

ariaHidden: null | string

MDN Reference

Inherited from

Element.ariaHidden


ariaInvalid

ariaInvalid: null | string

Inherited from

Element.ariaInvalid


ariaKeyShortcuts

ariaKeyShortcuts: null | string

MDN Reference

Inherited from

Element.ariaKeyShortcuts


ariaLabel

ariaLabel: null | string

MDN Reference

Inherited from

Element.ariaLabel


ariaLevel

ariaLevel: null | string

MDN Reference

Inherited from

Element.ariaLevel


ariaLive

ariaLive: null | string

MDN Reference

Inherited from

Element.ariaLive


ariaModal

ariaModal: null | string

MDN Reference

Inherited from

Element.ariaModal


ariaMultiLine

ariaMultiLine: null | string

MDN Reference

Inherited from

Element.ariaMultiLine


ariaMultiSelectable

ariaMultiSelectable: null | string

MDN Reference

Inherited from

Element.ariaMultiSelectable


ariaOrientation

ariaOrientation: null | string

MDN Reference

Inherited from

Element.ariaOrientation


ariaPlaceholder

ariaPlaceholder: null | string

MDN Reference

Inherited from

Element.ariaPlaceholder


ariaPosInSet

ariaPosInSet: null | string

MDN Reference

Inherited from

Element.ariaPosInSet


ariaPressed

ariaPressed: null | string

MDN Reference

Inherited from

Element.ariaPressed


ariaReadOnly

ariaReadOnly: null | string

MDN Reference

Inherited from

Element.ariaReadOnly


ariaRequired

ariaRequired: null | string

MDN Reference

Inherited from

Element.ariaRequired


ariaRoleDescription

ariaRoleDescription: null | string

MDN Reference

Inherited from

Element.ariaRoleDescription


ariaRowCount

ariaRowCount: null | string

MDN Reference

Inherited from

Element.ariaRowCount


ariaRowIndex

ariaRowIndex: null | string

MDN Reference

Inherited from

Element.ariaRowIndex


ariaRowSpan

ariaRowSpan: null | string

MDN Reference

Inherited from

Element.ariaRowSpan


ariaSelected

ariaSelected: null | string

MDN Reference

Inherited from

Element.ariaSelected


ariaSetSize

ariaSetSize: null | string

MDN Reference

Inherited from

Element.ariaSetSize


ariaSort

ariaSort: null | string

MDN Reference

Inherited from

Element.ariaSort


ariaValueMax

ariaValueMax: null | string

MDN Reference

Inherited from

Element.ariaValueMax


ariaValueMin

ariaValueMin: null | string

MDN Reference

Inherited from

Element.ariaValueMin


ariaValueNow

ariaValueNow: null | string

MDN Reference

Inherited from

Element.ariaValueNow


ariaValueText

ariaValueText: null | string

MDN Reference

Inherited from

Element.ariaValueText


assignedSlot

readonly assignedSlot: null | HTMLSlotElement

MDN Reference

Inherited from

Element.assignedSlot


ATTRIBUTE_NODE

readonly ATTRIBUTE_NODE: 2

Inherited from

Element.ATTRIBUTE_NODE


attributes

readonly attributes: NamedNodeMap

MDN Reference

Inherited from

Element.attributes


attributeStyleMap

readonly attributeStyleMap: StylePropertyMap

MDN Reference

Inherited from

ElementCSSInlineStyle.attributeStyleMap


autocapitalize

autocapitalize: string

MDN Reference


autofocus

autofocus: boolean

MDN Reference

Inherited from

HTMLOrSVGElement.autofocus


baseURI

readonly baseURI: string

Returns node's node document's document base URL.

MDN Reference

Inherited from

Element.baseURI


CDATA_SECTION_NODE

readonly CDATA_SECTION_NODE: 4

node is a CDATASection node.

Inherited from

Element.CDATA_SECTION_NODE


childElementCount

readonly childElementCount: number

MDN Reference

Inherited from

Element.childElementCount


childNodes

readonly childNodes: NodeListOf<ChildNode>

Returns the children.

MDN Reference

Inherited from

Element.childNodes


children

readonly children: HTMLCollection

Returns the child elements.

MDN Reference

Inherited from

Element.children


classList

readonly classList: DOMTokenList

Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.

MDN Reference

Inherited from

Element.classList


className

className: string

Returns the value of element's class content attribute. Can be set to change it.

MDN Reference

Inherited from

Element.className


clientHeight

readonly clientHeight: number

MDN Reference

Inherited from

Element.clientHeight


clientLeft

readonly clientLeft: number

MDN Reference

Inherited from

Element.clientLeft


clientTop

readonly clientTop: number

MDN Reference

Inherited from

Element.clientTop


clientWidth

readonly clientWidth: number

MDN Reference

Inherited from

Element.clientWidth


COMMENT_NODE

readonly COMMENT_NODE: 8

node is a Comment node.

Inherited from

Element.COMMENT_NODE


contentEditable

contentEditable: string

MDN Reference

Inherited from

ElementContentEditable.contentEditable


dataset

readonly dataset: DOMStringMap

MDN Reference

Inherited from

HTMLOrSVGElement.dataset


dir

dir: string

MDN Reference


DOCUMENT_FRAGMENT_NODE

readonly DOCUMENT_FRAGMENT_NODE: 11

node is a DocumentFragment node.

Inherited from

Element.DOCUMENT_FRAGMENT_NODE


DOCUMENT_NODE

readonly DOCUMENT_NODE: 9

node is a document.

Inherited from

Element.DOCUMENT_NODE


DOCUMENT_POSITION_CONTAINED_BY

readonly DOCUMENT_POSITION_CONTAINED_BY: 16

Set when other is a descendant of node.

Inherited from

Element.DOCUMENT_POSITION_CONTAINED_BY


DOCUMENT_POSITION_CONTAINS

readonly DOCUMENT_POSITION_CONTAINS: 8

Set when other is an ancestor of node.

Inherited from

Element.DOCUMENT_POSITION_CONTAINS


DOCUMENT_POSITION_DISCONNECTED

readonly DOCUMENT_POSITION_DISCONNECTED: 1

Set when node and other are not in the same tree.

Inherited from

Element.DOCUMENT_POSITION_DISCONNECTED


DOCUMENT_POSITION_FOLLOWING

readonly DOCUMENT_POSITION_FOLLOWING: 4

Set when other is following node.

Inherited from

Element.DOCUMENT_POSITION_FOLLOWING


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

Inherited from

Element.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC


DOCUMENT_POSITION_PRECEDING

readonly DOCUMENT_POSITION_PRECEDING: 2

Set when other is preceding node.

Inherited from

Element.DOCUMENT_POSITION_PRECEDING


DOCUMENT_TYPE_NODE

readonly DOCUMENT_TYPE_NODE: 10

node is a doctype.

Inherited from

Element.DOCUMENT_TYPE_NODE


draggable

draggable: boolean

MDN Reference


ELEMENT_NODE

readonly ELEMENT_NODE: 1

node is an element.

Inherited from

Element.ELEMENT_NODE


enterKeyHint

enterKeyHint: string

MDN Reference

Inherited from

ElementContentEditable.enterKeyHint


ENTITY_NODE

readonly ENTITY_NODE: 6

Inherited from

Element.ENTITY_NODE


ENTITY_REFERENCE_NODE

readonly ENTITY_REFERENCE_NODE: 5

Inherited from

Element.ENTITY_REFERENCE_NODE


firstChild

readonly firstChild: null | ChildNode

Returns the first child.

MDN Reference

Inherited from

Element.firstChild


firstElementChild

readonly firstElementChild: null | Element

Returns the first child that is an element, and null otherwise.

MDN Reference

Inherited from

Element.firstElementChild


hidden

hidden: boolean

MDN Reference


id

id: string

Returns the value of element's id content attribute. Can be set to change it.

MDN Reference

Inherited from

Element.id


inert

inert: boolean

MDN Reference


innerHTML

innerHTML: string

MDN Reference

Inherited from

Element.innerHTML


innerText

innerText: string

MDN Reference


inputMode

inputMode: string

MDN Reference

Inherited from

ElementContentEditable.inputMode


isConnected

readonly isConnected: boolean

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from

Element.isConnected


isContentEditable

readonly isContentEditable: boolean

MDN Reference

Inherited from

ElementContentEditable.isContentEditable


lang

lang: string

MDN Reference


lastChild

readonly lastChild: null | ChildNode

Returns the last child.

MDN Reference

Inherited from

Element.lastChild


lastElementChild

readonly lastElementChild: null | Element

Returns the last child that is an element, and null otherwise.

MDN Reference

Inherited from

Element.lastElementChild


localName

readonly localName: string

Returns the local name.

MDN Reference

Inherited from

Element.localName


namespaceURI

readonly namespaceURI: null | string

Returns the namespace.

MDN Reference

Inherited from

Element.namespaceURI


nextElementSibling

readonly nextElementSibling: null | Element

Returns the first following sibling that is an element, and null otherwise.

MDN Reference

Inherited from

Element.nextElementSibling


nextSibling

readonly nextSibling: null | ChildNode

Returns the next sibling.

MDN Reference

Inherited from

Element.nextSibling


nodeName

readonly nodeName: string

Returns a string appropriate for the type of node.

MDN Reference

Inherited from

Element.nodeName


nodeType

readonly nodeType: number

Returns the type of node.

MDN Reference

Inherited from

Element.nodeType


nodeValue

nodeValue: null | string

MDN Reference

Inherited from

Element.nodeValue


nonce?

optional nonce: string

MDN Reference

Inherited from

HTMLOrSVGElement.nonce


NOTATION_NODE

readonly NOTATION_NODE: 12

Inherited from

Element.NOTATION_NODE


offsetHeight

readonly offsetHeight: number

MDN Reference


offsetLeft

readonly offsetLeft: number

MDN Reference


offsetParent

readonly offsetParent: null | Element

MDN Reference


offsetTop

readonly offsetTop: number

MDN Reference


offsetWidth

readonly offsetWidth: number

MDN Reference


onabort

onabort: null | (this, ev) => any

Fires when the user aborts the download.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onabort


onanimationcancel

onanimationcancel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onanimationcancel


onanimationend

onanimationend: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onanimationend


onanimationiteration

onanimationiteration: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onanimationiteration


onanimationstart

onanimationstart: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onanimationstart


onauxclick

onauxclick: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onauxclick


onbeforeinput

onbeforeinput: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onbeforeinput


onbeforetoggle

onbeforetoggle: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onbeforetoggle


onblur

onblur: null | (this, ev) => any

Fires when the object loses the input focus.

Param

The focus event.

MDN Reference

Inherited from

GlobalEventHandlers.onblur


oncancel

oncancel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncancel


oncanplay

oncanplay: null | (this, ev) => any

Occurs when playback is possible, but would require further buffering.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.oncanplay


oncanplaythrough

oncanplaythrough: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncanplaythrough


onchange

onchange: null | (this, ev) => any

Fires when the contents of the object or selection have changed.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onchange


onclick

onclick: null | (this, ev) => any

Fires when the user clicks the left mouse button on the object

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onclick


onclose

onclose: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onclose


oncontextlost

oncontextlost: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncontextlost


oncontextmenu

oncontextmenu: null | (this, ev) => any

Fires when the user clicks the right mouse button in the client area, opening the context menu.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.oncontextmenu


oncontextrestored

oncontextrestored: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncontextrestored


oncopy

oncopy: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncopy


oncuechange

oncuechange: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncuechange


oncut

oncut: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oncut


ondblclick

ondblclick: null | (this, ev) => any

Fires when the user double-clicks the object.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.ondblclick


ondrag

ondrag: null | (this, ev) => any

Fires on the source object continuously during a drag operation.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ondrag


ondragend

ondragend: null | (this, ev) => any

Fires on the source object when the user releases the mouse at the close of a drag operation.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ondragend


ondragenter

ondragenter: null | (this, ev) => any

Fires on the target element when the user drags the object to a valid drop target.

Param

The drag event.

MDN Reference

Inherited from

GlobalEventHandlers.ondragenter


ondragleave

ondragleave: null | (this, ev) => any

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

Param

The drag event.

MDN Reference

Inherited from

GlobalEventHandlers.ondragleave


ondragover

ondragover: null | (this, ev) => any

Fires on the target element continuously while the user drags the object over a valid drop target.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ondragover


ondragstart

ondragstart: null | (this, ev) => any

Fires on the source object when the user starts to drag a text selection or selected object.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ondragstart


ondrop

ondrop: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ondrop


ondurationchange

ondurationchange: null | (this, ev) => any

Occurs when the duration attribute is updated.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ondurationchange


onemptied

onemptied: null | (this, ev) => any

Occurs when the media element is reset to its initial state.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onemptied


onended

onended: null | (this, ev) => any

Occurs when the end of playback is reached.

Param

The event

MDN Reference

Inherited from

GlobalEventHandlers.onended


onerror

onerror: OnErrorEventHandler

Fires when an error occurs during object loading.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onerror


onfocus

onfocus: null | (this, ev) => any

Fires when the object receives focus.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onfocus


onformdata

onformdata: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onformdata


onfullscreenchange

onfullscreenchange: null | (this, ev) => any

MDN Reference

Inherited from

Element.onfullscreenchange


onfullscreenerror

onfullscreenerror: null | (this, ev) => any

MDN Reference

Inherited from

Element.onfullscreenerror


ongotpointercapture

ongotpointercapture: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ongotpointercapture


oninput

oninput: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oninput


oninvalid

oninvalid: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.oninvalid


onkeydown

onkeydown: null | (this, ev) => any

Fires when the user presses a key.

Param

The keyboard event

MDN Reference

Inherited from

GlobalEventHandlers.onkeydown


onkeypress

onkeypress: null | (this, ev) => any

Fires when the user presses an alphanumeric key.

Param

The event.

Deprecated

MDN Reference

Inherited from

GlobalEventHandlers.onkeypress


onkeyup

onkeyup: null | (this, ev) => any

Fires when the user releases a key.

Param

The keyboard event

MDN Reference

Inherited from

GlobalEventHandlers.onkeyup


onload

onload: null | (this, ev) => any

Fires immediately after the browser loads the object.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onload


onloadeddata

onloadeddata: null | (this, ev) => any

Occurs when media data is loaded at the current playback position.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onloadeddata


onloadedmetadata

onloadedmetadata: null | (this, ev) => any

Occurs when the duration and dimensions of the media have been determined.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onloadedmetadata


onloadstart

onloadstart: null | (this, ev) => any

Occurs when Internet Explorer begins looking for media data.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onloadstart


onlostpointercapture

onlostpointercapture: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onlostpointercapture


onmousedown

onmousedown: null | (this, ev) => any

Fires when the user clicks the object with either mouse button.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onmousedown


onmouseenter

onmouseenter: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onmouseenter


onmouseleave

onmouseleave: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onmouseleave


onmousemove

onmousemove: null | (this, ev) => any

Fires when the user moves the mouse over the object.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onmousemove


onmouseout

onmouseout: null | (this, ev) => any

Fires when the user moves the mouse pointer outside the boundaries of the object.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onmouseout


onmouseover

onmouseover: null | (this, ev) => any

Fires when the user moves the mouse pointer into the object.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onmouseover


onmouseup

onmouseup: null | (this, ev) => any

Fires when the user releases a mouse button while the mouse is over the object.

Param

The mouse event.

MDN Reference

Inherited from

GlobalEventHandlers.onmouseup


onpaste

onpaste: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpaste


onpause

onpause: null | (this, ev) => any

Occurs when playback is paused.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onpause


onplay

onplay: null | (this, ev) => any

Occurs when the play method is requested.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onplay


onplaying

onplaying: null | (this, ev) => any

Occurs when the audio or video has started playing.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onplaying


onpointercancel

onpointercancel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointercancel


onpointerdown

onpointerdown: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerdown


onpointerenter

onpointerenter: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerenter


onpointerleave

onpointerleave: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerleave


onpointermove

onpointermove: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointermove


onpointerout

onpointerout: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerout


onpointerover

onpointerover: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerover


onpointerup

onpointerup: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onpointerup


onprogress

onprogress: null | (this, ev) => any

Occurs to indicate progress while downloading media data.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onprogress


onratechange

onratechange: null | (this, ev) => any

Occurs when the playback rate is increased or decreased.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onratechange


onreset

onreset: null | (this, ev) => any

Fires when the user resets a form.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onreset


onresize

onresize: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onresize


onscroll

onscroll: null | (this, ev) => any

Fires when the user repositions the scroll box in the scroll bar on the object.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onscroll


onscrollend

onscrollend: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onscrollend


onsecuritypolicyviolation

onsecuritypolicyviolation: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onsecuritypolicyviolation


onseeked

onseeked: null | (this, ev) => any

Occurs when the seek operation ends.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onseeked


onseeking

onseeking: null | (this, ev) => any

Occurs when the current playback position is moved.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onseeking


onselect

onselect: null | (this, ev) => any

Fires when the current selection changes.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onselect


onselectionchange

onselectionchange: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onselectionchange


onselectstart

onselectstart: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onselectstart


onslotchange

onslotchange: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onslotchange


onstalled

onstalled: null | (this, ev) => any

Occurs when the download has stopped.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onstalled


onsubmit

onsubmit: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onsubmit


onsuspend

onsuspend: null | (this, ev) => any

Occurs if the load operation has been intentionally halted.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onsuspend


ontimeupdate

ontimeupdate: null | (this, ev) => any

Occurs to indicate the current playback position.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.ontimeupdate


ontoggle

ontoggle: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontoggle


ontouchcancel?

optional ontouchcancel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontouchcancel


ontouchend?

optional ontouchend: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontouchend


ontouchmove?

optional ontouchmove: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontouchmove


ontouchstart?

optional ontouchstart: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontouchstart


ontransitioncancel

ontransitioncancel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontransitioncancel


ontransitionend

ontransitionend: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontransitionend


ontransitionrun

ontransitionrun: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontransitionrun


ontransitionstart

ontransitionstart: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.ontransitionstart


onvolumechange

onvolumechange: null | (this, ev) => any

Occurs when the volume is changed, or playback is muted or unmuted.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onvolumechange


onwaiting

onwaiting: null | (this, ev) => any

Occurs when playback stops because the next frame of a video resource is not available.

Param

The event.

MDN Reference

Inherited from

GlobalEventHandlers.onwaiting


onwebkitanimationend

onwebkitanimationend: null | (this, ev) => any

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

Inherited from

GlobalEventHandlers.onwebkitanimationend


onwebkitanimationiteration

onwebkitanimationiteration: null | (this, ev) => any

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

Inherited from

GlobalEventHandlers.onwebkitanimationiteration


onwebkitanimationstart

onwebkitanimationstart: null | (this, ev) => any

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

Inherited from

GlobalEventHandlers.onwebkitanimationstart


onwebkittransitionend

onwebkittransitionend: null | (this, ev) => any

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

Inherited from

GlobalEventHandlers.onwebkittransitionend


onwheel

onwheel: null | (this, ev) => any

MDN Reference

Inherited from

GlobalEventHandlers.onwheel


outerHTML

outerHTML: string

MDN Reference

Inherited from

Element.outerHTML


outerText

outerText: string

MDN Reference


ownerDocument

readonly ownerDocument: Document

Returns the node document. Returns null for documents.

MDN Reference

Inherited from

Element.ownerDocument


parentElement

readonly parentElement: null | HTMLElement

Returns the parent element.

MDN Reference

Inherited from

Element.parentElement


parentNode

readonly parentNode: null | ParentNode

Returns the parent.

MDN Reference

Inherited from

Element.parentNode


part

readonly part: DOMTokenList

MDN Reference

Inherited from

Element.part


popover

popover: null | string

MDN Reference


prefix

readonly prefix: null | string

Returns the namespace prefix.

MDN Reference

Inherited from

Element.prefix


previousElementSibling

readonly previousElementSibling: null | Element

Returns the first preceding sibling that is an element, and null otherwise.

MDN Reference

Inherited from

Element.previousElementSibling


previousSibling

readonly previousSibling: null | ChildNode

Returns the previous sibling.

MDN Reference

Inherited from

Element.previousSibling


PROCESSING_INSTRUCTION_NODE

readonly PROCESSING_INSTRUCTION_NODE: 7

node is a ProcessingInstruction node.

Inherited from

Element.PROCESSING_INSTRUCTION_NODE


role

role: null | string

Inherited from

Element.role


scrollHeight

readonly scrollHeight: number

MDN Reference

Inherited from

Element.scrollHeight


scrollLeft

scrollLeft: number

MDN Reference

Inherited from

Element.scrollLeft


scrollTop

scrollTop: number

MDN Reference

Inherited from

Element.scrollTop


scrollWidth

readonly scrollWidth: number

MDN Reference

Inherited from

Element.scrollWidth


shadowRoot

readonly shadowRoot: null | ShadowRoot

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.

MDN Reference

Inherited from

Element.shadowRoot


slot

slot: string

Returns the value of element's slot content attribute. Can be set to change it.

MDN Reference

Inherited from

Element.slot


spellcheck

spellcheck: boolean

MDN Reference


style

readonly style: CSSStyleDeclaration

MDN Reference

Inherited from

ElementCSSInlineStyle.style


tabIndex

tabIndex: number

MDN Reference

Inherited from

HTMLOrSVGElement.tabIndex


tagName

readonly tagName: string

Returns the HTML-uppercased qualified name.

MDN Reference

Inherited from

Element.tagName


TEXT_NODE

readonly TEXT_NODE: 3

node is a Text node.

Inherited from

Element.TEXT_NODE


textContent

textContent: null | string

MDN Reference

Inherited from

Element.textContent


title

title: string

MDN Reference


translate

translate: boolean

MDN Reference

Methods

addEventListener()

Call Signature

addEventListener<K>(type, listener, options?): void

Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | AddEventListenerOptions
Returns

void

Overrides

Element.addEventListener

Call Signature

addEventListener(type, listener, options?): void

Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

MDN Reference

Parameters
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | AddEventListenerOptions
Returns

void

Overrides

Element.addEventListener


after()

after(...nodes): void

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.after


animate()

animate(keyframes, options?): Animation

MDN Reference

Parameters

ParameterType
keyframesnull | Keyframe[] | PropertyIndexedKeyframes
options?number | KeyframeAnimationOptions

Returns

Animation

Inherited from

Element.animate


append()

append(...nodes): void

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.append


appendChild()

appendChild<T>(node): T

MDN Reference

Type Parameters

Type Parameter
T extends Node

Parameters

ParameterType
nodeT

Returns

T

Inherited from

Element.appendChild


attachInternals()

attachInternals(): ElementInternals

MDN Reference

Returns

ElementInternals


attachShadow()

attachShadow(init): ShadowRoot

Creates a shadow root for element and returns it.

MDN Reference

Parameters

ParameterType
initShadowRootInit

Returns

ShadowRoot

Inherited from

Element.attachShadow


before()

before(...nodes): void

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.before


blur()

blur(): void

MDN Reference

Returns

void

Inherited from

HTMLOrSVGElement.blur


checkVisibility()

checkVisibility(options?): boolean

MDN Reference

Parameters

ParameterType
options?CheckVisibilityOptions

Returns

boolean

Inherited from

Element.checkVisibility


click()

click(): void

MDN Reference

Returns

void


cloneNode()

cloneNode(deep?): Node

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

MDN Reference

Parameters

ParameterType
deep?boolean

Returns

Node

Inherited from

Element.cloneNode


closest()

Call Signature

closest<K>(selector): null | HTMLElementTagNameMap[K]

Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
ParameterType
selectorK
Returns

null | HTMLElementTagNameMap[K]

Inherited from

Element.closest

Call Signature

closest<K>(selector): null | SVGElementTagNameMap[K]

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
ParameterType
selectorK
Returns

null | SVGElementTagNameMap[K]

Inherited from

Element.closest

Call Signature

closest<K>(selector): null | MathMLElementTagNameMap[K]

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
ParameterType
selectorK
Returns

null | MathMLElementTagNameMap[K]

Inherited from

Element.closest

Call Signature

closest<E>(selectors): null | E

Type Parameters
Type ParameterDefault type
E extends ElementElement
Parameters
ParameterType
selectorsstring
Returns

null | E

Inherited from

Element.closest


compareDocumentPosition()

compareDocumentPosition(other): number

Returns a bitmask indicating the position of other relative to node.

MDN Reference

Parameters

ParameterType
otherNode

Returns

number

Inherited from

Element.compareDocumentPosition


computedStyleMap()

computedStyleMap(): StylePropertyMapReadOnly

MDN Reference

Returns

StylePropertyMapReadOnly

Inherited from

Element.computedStyleMap


contains()

contains(other): boolean

Returns true if other is an inclusive descendant of node, and false otherwise.

MDN Reference

Parameters

ParameterType
othernull | Node

Returns

boolean

Inherited from

Element.contains


dispatchEvent()

dispatchEvent(event): boolean

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Parameters

ParameterType
eventEvent

Returns

boolean

Inherited from

Element.dispatchEvent


focus()

focus(options?): void

MDN Reference

Parameters

ParameterType
options?FocusOptions

Returns

void

Inherited from

HTMLOrSVGElement.focus


getAnimations()

getAnimations(options?): Animation[]

MDN Reference

Parameters

ParameterType
options?GetAnimationsOptions

Returns

Animation[]

Inherited from

Element.getAnimations


getAttribute()

getAttribute(qualifiedName): null | string

Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.

MDN Reference

Parameters

ParameterType
qualifiedNamestring

Returns

null | string

Inherited from

Element.getAttribute


getAttributeNames()

getAttributeNames(): string[]

Returns the qualified names of all element's attributes. Can contain duplicates.

MDN Reference

Returns

string[]

Inherited from

Element.getAttributeNames


getAttributeNode()

getAttributeNode(qualifiedName): null | Attr

MDN Reference

Parameters

ParameterType
qualifiedNamestring

Returns

null | Attr

Inherited from

Element.getAttributeNode


getAttributeNodeNS()

getAttributeNodeNS(namespace, localName): null | Attr

MDN Reference

Parameters

ParameterType
namespacenull | string
localNamestring

Returns

null | Attr

Inherited from

Element.getAttributeNodeNS


getAttributeNS()

getAttributeNS(namespace, localName): null | string

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

MDN Reference

Parameters

ParameterType
namespacenull | string
localNamestring

Returns

null | string

Inherited from

Element.getAttributeNS


getBoundingClientRect()

getBoundingClientRect(): DOMRect

MDN Reference

Returns

DOMRect

Inherited from

Element.getBoundingClientRect


getClientRects()

getClientRects(): DOMRectList

MDN Reference

Returns

DOMRectList

Inherited from

Element.getClientRects


getElementsByClassName()

getElementsByClassName(classNames): HTMLCollectionOf<Element>

Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.

MDN Reference

Parameters

ParameterType
classNamesstring

Returns

HTMLCollectionOf<Element>

Inherited from

Element.getElementsByClassName


getElementsByTagName()

Call Signature

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
ParameterType
qualifiedNameK
Returns

HTMLCollectionOf<HTMLElementTagNameMap[K]>

Inherited from

Element.getElementsByTagName

Call Signature

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
ParameterType
qualifiedNameK
Returns

HTMLCollectionOf<SVGElementTagNameMap[K]>

Inherited from

Element.getElementsByTagName

Call Signature

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
ParameterType
qualifiedNameK
Returns

HTMLCollectionOf<MathMLElementTagNameMap[K]>

Inherited from

Element.getElementsByTagName

Call Signature

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
ParameterType
qualifiedNameK
Returns

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from

Element.getElementsByTagName

Call Signature

getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>

Parameters
ParameterType
qualifiedNamestring
Returns

HTMLCollectionOf<Element>

Inherited from

Element.getElementsByTagName


getElementsByTagNameNS()

Call Signature

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>

MDN Reference

Parameters
ParameterType
namespaceURI"http://www.w3.org/1999/xhtml"
localNamestring
Returns

HTMLCollectionOf<HTMLElement>

Inherited from

Element.getElementsByTagNameNS

Call Signature

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>

Parameters
ParameterType
namespaceURI"http://www.w3.org/2000/svg"
localNamestring
Returns

HTMLCollectionOf<SVGElement>

Inherited from

Element.getElementsByTagNameNS

Call Signature

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>

Parameters
ParameterType
namespaceURI"http://www.w3.org/1998/Math/MathML"
localNamestring
Returns

HTMLCollectionOf<MathMLElement>

Inherited from

Element.getElementsByTagNameNS

Call Signature

getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>

Parameters
ParameterType
namespacenull | string
localNamestring
Returns

HTMLCollectionOf<Element>

Inherited from

Element.getElementsByTagNameNS


getHTML()

getHTML(options?): string

MDN Reference

Parameters

ParameterType
options?GetHTMLOptions

Returns

string

Inherited from

Element.getHTML


getRootNode()

getRootNode(options?): Node

Returns node's root.

MDN Reference

Parameters

ParameterType
options?GetRootNodeOptions

Returns

Node

Inherited from

Element.getRootNode


hasAttribute()

hasAttribute(qualifiedName): boolean

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

MDN Reference

Parameters

ParameterType
qualifiedNamestring

Returns

boolean

Inherited from

Element.hasAttribute


hasAttributeNS()

hasAttributeNS(namespace, localName): boolean

Returns true if element has an attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters

ParameterType
namespacenull | string
localNamestring

Returns

boolean

Inherited from

Element.hasAttributeNS


hasAttributes()

hasAttributes(): boolean

Returns true if element has attributes, and false otherwise.

MDN Reference

Returns

boolean

Inherited from

Element.hasAttributes


hasChildNodes()

hasChildNodes(): boolean

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from

Element.hasChildNodes


hasPointerCapture()

hasPointerCapture(pointerId): boolean

MDN Reference

Parameters

ParameterType
pointerIdnumber

Returns

boolean

Inherited from

Element.hasPointerCapture


hidePopover()

hidePopover(): void

MDN Reference

Returns

void


insertAdjacentElement()

insertAdjacentElement(where, element): null | Element

MDN Reference

Parameters

ParameterType
whereInsertPosition
elementElement

Returns

null | Element

Inherited from

Element.insertAdjacentElement


insertAdjacentHTML()

insertAdjacentHTML(position, string): void

MDN Reference

Parameters

ParameterType
positionInsertPosition
stringstring

Returns

void

Inherited from

Element.insertAdjacentHTML


insertAdjacentText()

insertAdjacentText(where, data): void

MDN Reference

Parameters

ParameterType
whereInsertPosition
datastring

Returns

void

Inherited from

Element.insertAdjacentText


insertBefore()

insertBefore<T>(node, child): T

MDN Reference

Type Parameters

Type Parameter
T extends Node

Parameters

ParameterType
nodeT
childnull | Node

Returns

T

Inherited from

Element.insertBefore


isDefaultNamespace()

isDefaultNamespace(namespace): boolean

MDN Reference

Parameters

ParameterType
namespacenull | string

Returns

boolean

Inherited from

Element.isDefaultNamespace


isEqualNode()

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters

ParameterType
otherNodenull | Node

Returns

boolean

Inherited from

Element.isEqualNode


isSameNode()

isSameNode(otherNode): boolean

MDN Reference

Parameters

ParameterType
otherNodenull | Node

Returns

boolean

Inherited from

Element.isSameNode


lookupNamespaceURI()

lookupNamespaceURI(prefix): null | string

MDN Reference

Parameters

ParameterType
prefixnull | string

Returns

null | string

Inherited from

Element.lookupNamespaceURI


lookupPrefix()

lookupPrefix(namespace): null | string

MDN Reference

Parameters

ParameterType
namespacenull | string

Returns

null | string

Inherited from

Element.lookupPrefix


matches()

matches(selectors): boolean

Returns true if matching selectors against element's root yields element, and false otherwise.

MDN Reference

Parameters

ParameterType
selectorsstring

Returns

boolean

Inherited from

Element.matches


normalize()

normalize(): void

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

MDN Reference

Returns

void

Inherited from

Element.normalize


prepend()

prepend(...nodes): void

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.prepend


querySelector()

Call Signature

querySelector<K>(selectors): null | HTMLElementTagNameMap[K]

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

null | HTMLElementTagNameMap[K]

Inherited from

Element.querySelector

Call Signature

querySelector<K>(selectors): null | SVGElementTagNameMap[K]

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

null | SVGElementTagNameMap[K]

Inherited from

Element.querySelector

Call Signature

querySelector<K>(selectors): null | MathMLElementTagNameMap[K]

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

null | MathMLElementTagNameMap[K]

Inherited from

Element.querySelector

Call Signature

querySelector<K>(selectors): null | HTMLElementDeprecatedTagNameMap[K]

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
ParameterType
selectorsK
Returns

null | HTMLElementDeprecatedTagNameMap[K]

Deprecated
Inherited from

Element.querySelector

Call Signature

querySelector<E>(selectors): null | E

Type Parameters
Type ParameterDefault type
E extends ElementElement
Parameters
ParameterType
selectorsstring
Returns

null | E

Inherited from

Element.querySelector


querySelectorAll()

Call Signature

querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>

Returns all element descendants of node that match selectors.

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from

Element.querySelectorAll

Call Signature

querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from

Element.querySelectorAll

Call Signature

querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
ParameterType
selectorsK
Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from

Element.querySelectorAll

Call Signature

querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
ParameterType
selectorsK
Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from

Element.querySelectorAll

Call Signature

querySelectorAll<E>(selectors): NodeListOf<E>

Type Parameters
Type ParameterDefault type
E extends ElementElement
Parameters
ParameterType
selectorsstring
Returns

NodeListOf<E>

Inherited from

Element.querySelectorAll


releasePointerCapture()

releasePointerCapture(pointerId): void

MDN Reference

Parameters

ParameterType
pointerIdnumber

Returns

void

Inherited from

Element.releasePointerCapture


remove()

remove(): void

Removes node.

MDN Reference

Returns

void

Inherited from

Element.remove


removeAttribute()

removeAttribute(qualifiedName): void

Removes element's first attribute whose qualified name is qualifiedName.

MDN Reference

Parameters

ParameterType
qualifiedNamestring

Returns

void

Inherited from

Element.removeAttribute


removeAttributeNode()

removeAttributeNode(attr): Attr

MDN Reference

Parameters

ParameterType
attrAttr

Returns

Attr

Inherited from

Element.removeAttributeNode


removeAttributeNS()

removeAttributeNS(namespace, localName): void

Removes element's attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters

ParameterType
namespacenull | string
localNamestring

Returns

void

Inherited from

Element.removeAttributeNS


removeChild()

removeChild<T>(child): T

MDN Reference

Type Parameters

Type Parameter
T extends Node

Parameters

ParameterType
childT

Returns

T

Inherited from

Element.removeChild


removeEventListener()

Call Signature

removeEventListener<K>(type, listener, options?): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

Type Parameters
Type Parameter
K extends keyof HTMLElementEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | EventListenerOptions
Returns

void

Overrides

Element.removeEventListener

Call Signature

removeEventListener(type, listener, options?): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

Parameters
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | EventListenerOptions
Returns

void

Overrides

Element.removeEventListener


replaceChild()

replaceChild<T>(node, child): T

MDN Reference

Type Parameters

Type Parameter
T extends Node

Parameters

ParameterType
nodeNode
childT

Returns

T

Inherited from

Element.replaceChild


replaceChildren()

replaceChildren(...nodes): void

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.replaceChildren


replaceWith()

replaceWith(...nodes): void

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

ParameterType
...nodes(string | Node)[]

Returns

void

Inherited from

Element.replaceWith


requestFullscreen()

requestFullscreen(options?): Promise<void>

Displays element fullscreen and resolves promise when done.

When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.

MDN Reference

Parameters

ParameterType
options?FullscreenOptions

Returns

Promise<void>

Inherited from

Element.requestFullscreen


requestPointerLock()

requestPointerLock(options?): Promise<void>

MDN Reference

Parameters

ParameterType
options?PointerLockOptions

Returns

Promise<void>

Inherited from

Element.requestPointerLock


scroll()

Call Signature

scroll(options?): void

MDN Reference

Parameters
ParameterType
options?ScrollToOptions
Returns

void

Inherited from

Element.scroll

Call Signature

scroll(x, y): void

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

Element.scroll


scrollBy()

Call Signature

scrollBy(options?): void

MDN Reference

Parameters
ParameterType
options?ScrollToOptions
Returns

void

Inherited from

Element.scrollBy

Call Signature

scrollBy(x, y): void

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

Element.scrollBy


scrollIntoView()

scrollIntoView(arg?): void

MDN Reference

Parameters

ParameterType
arg?boolean | ScrollIntoViewOptions

Returns

void

Inherited from

Element.scrollIntoView


scrollTo()

Call Signature

scrollTo(options?): void

MDN Reference

Parameters
ParameterType
options?ScrollToOptions
Returns

void

Inherited from

Element.scrollTo

Call Signature

scrollTo(x, y): void

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

Element.scrollTo


setAttribute()

setAttribute(qualifiedName, value): void

Sets the value of element's first attribute whose qualified name is qualifiedName to value.

MDN Reference

Parameters

ParameterType
qualifiedNamestring
valuestring

Returns

void

Inherited from

Element.setAttribute


setAttributeNode()

setAttributeNode(attr): null | Attr

MDN Reference

Parameters

ParameterType
attrAttr

Returns

null | Attr

Inherited from

Element.setAttributeNode


setAttributeNodeNS()

setAttributeNodeNS(attr): null | Attr

MDN Reference

Parameters

ParameterType
attrAttr

Returns

null | Attr

Inherited from

Element.setAttributeNodeNS


setAttributeNS()

setAttributeNS(namespace, qualifiedName, value): void

Sets the value of element's attribute whose namespace is namespace and local name is localName to value.

MDN Reference

Parameters

ParameterType
namespacenull | string
qualifiedNamestring
valuestring

Returns

void

Inherited from

Element.setAttributeNS


setHTMLUnsafe()

setHTMLUnsafe(html): void

MDN Reference

Parameters

ParameterType
htmlstring

Returns

void

Inherited from

Element.setHTMLUnsafe


setPointerCapture()

setPointerCapture(pointerId): void

MDN Reference

Parameters

ParameterType
pointerIdnumber

Returns

void

Inherited from

Element.setPointerCapture


showPopover()

showPopover(): void

MDN Reference

Returns

void


toggleAttribute()

toggleAttribute(qualifiedName, force?): boolean

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns true if qualifiedName is now present, and false otherwise.

MDN Reference

Parameters

ParameterType
qualifiedNamestring
force?boolean

Returns

boolean

Inherited from

Element.toggleAttribute


togglePopover()

togglePopover(force?): boolean

MDN Reference

Parameters

ParameterType
force?boolean

Returns

boolean


webkitMatchesSelector()

webkitMatchesSelector(selectors): boolean

Parameters

ParameterType
selectorsstring

Returns

boolean

Deprecated

This is a legacy alias of matches.

MDN Reference

Inherited from

Element.webkitMatchesSelector