HTMLElement extension type
The HTMLElement
interface represents any
HTML element. Some
elements directly implement this interface, while others implement it via an
interface that inherits it.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Implementers
- HTMLAnchorElement
- HTMLAreaElement
- HTMLBaseElement
- HTMLBodyElement
- HTMLBRElement
- HTMLButtonElement
- HTMLCanvasElement
- HTMLDataElement
- HTMLDataListElement
- HTMLDetailsElement
- HTMLDialogElement
- HTMLDirectoryElement
- HTMLDivElement
- HTMLDListElement
- HTMLEmbedElement
- HTMLFieldSetElement
- HTMLFontElement
- HTMLFormElement
- HTMLFrameElement
- HTMLFrameSetElement
- HTMLHeadElement
- HTMLHeadingElement
- HTMLHRElement
- HTMLHtmlElement
- HTMLIFrameElement
- HTMLImageElement
- HTMLInputElement
- HTMLLabelElement
- HTMLLegendElement
- HTMLLIElement
- HTMLLinkElement
- HTMLMapElement
- HTMLMarqueeElement
- HTMLMediaElement
- HTMLMenuElement
- HTMLMetaElement
- HTMLMeterElement
- HTMLModElement
- HTMLObjectElement
- HTMLOListElement
- HTMLOptGroupElement
- HTMLOptionElement
- HTMLOutputElement
- HTMLParagraphElement
- HTMLParamElement
- HTMLPictureElement
- HTMLPreElement
- HTMLProgressElement
- HTMLQuoteElement
- HTMLScriptElement
- HTMLSelectElement
- HTMLSlotElement
- HTMLSourceElement
- HTMLSpanElement
- HTMLStyleElement
- HTMLTableCaptionElement
- HTMLTableCellElement
- HTMLTableColElement
- HTMLTableElement
- HTMLTableRowElement
- HTMLTableSectionElement
- HTMLTemplateElement
- HTMLTextAreaElement
- HTMLTimeElement
- HTMLTitleElement
- HTMLTrackElement
- HTMLUListElement
- HTMLUnknownElement
- Available extensions
Constructors
- HTMLElement.abbr()
- Creates an HTMLElement using the tag 'abbr'.
- HTMLElement.acronym()
- Creates an HTMLElement using the tag 'acronym'.
- HTMLElement.address()
- Creates an HTMLElement using the tag 'address'.
- HTMLElement.article()
- Creates an HTMLElement using the tag 'article'.
- HTMLElement.aside()
- Creates an HTMLElement using the tag 'aside'.
- HTMLElement.b()
- Creates an HTMLElement using the tag 'b'.
- HTMLElement.basefont()
- Creates an HTMLElement using the tag 'basefont'.
- HTMLElement.bdi()
- Creates an HTMLElement using the tag 'bdi'.
- HTMLElement.bdo()
- Creates an HTMLElement using the tag 'bdo'.
- HTMLElement.big()
- Creates an HTMLElement using the tag 'big'.
- HTMLElement.center()
- Creates an HTMLElement using the tag 'center'.
- HTMLElement.cite()
- Creates an HTMLElement using the tag 'cite'.
- HTMLElement.code()
- Creates an HTMLElement using the tag 'code'.
- HTMLElement.dd()
- Creates an HTMLElement using the tag 'dd'.
- HTMLElement.dfn()
- Creates an HTMLElement using the tag 'dfn'.
- HTMLElement.dt()
- Creates an HTMLElement using the tag 'dt'.
- HTMLElement.em()
- Creates an HTMLElement using the tag 'em'.
- Creates an HTMLElement using the tag 'figcaption'.
- HTMLElement.figure()
- Creates an HTMLElement using the tag 'figure'.
- Creates an HTMLElement using the tag 'footer'.
- HTMLElement.header()
- Creates an HTMLElement using the tag 'header'.
- HTMLElement.hgroup()
- Creates an HTMLElement using the tag 'hgroup'.
- HTMLElement.i()
- Creates an HTMLElement using the tag 'i'.
- HTMLElement.kbd()
- Creates an HTMLElement using the tag 'kbd'.
- HTMLElement.main()
- Creates an HTMLElement using the tag 'main'.
- HTMLElement.mark()
- Creates an HTMLElement using the tag 'mark'.
- Creates an HTMLElement using the tag 'menuitem'.
- Creates an HTMLElement using the tag 'nav'.
- HTMLElement.nobr()
- Creates an HTMLElement using the tag 'nobr'.
- HTMLElement.noembed()
- Creates an HTMLElement using the tag 'noembed'.
- HTMLElement.noframes()
- Creates an HTMLElement using the tag 'noframes'.
- HTMLElement.noscript()
- Creates an HTMLElement using the tag 'noscript'.
- HTMLElement.plaintext()
- Creates an HTMLElement using the tag 'plaintext'.
- HTMLElement.rb()
- Creates an HTMLElement using the tag 'rb'.
- HTMLElement.rp()
- Creates an HTMLElement using the tag 'rp'.
- HTMLElement.rt()
- Creates an HTMLElement using the tag 'rt'.
- HTMLElement.rtc()
- Creates an HTMLElement using the tag 'rtc'.
- HTMLElement.ruby()
- Creates an HTMLElement using the tag 'ruby'.
- HTMLElement.s()
- Creates an HTMLElement using the tag 's'.
- HTMLElement.samp()
- Creates an HTMLElement using the tag 'samp'.
- HTMLElement.search()
- Creates an HTMLElement using the tag 'search'.
- HTMLElement.section()
- Creates an HTMLElement using the tag 'section'.
- HTMLElement.small()
- Creates an HTMLElement using the tag 'small'.
- HTMLElement.strike()
- Creates an HTMLElement using the tag 'strike'.
- HTMLElement.strong()
- Creates an HTMLElement using the tag 'strong'.
- HTMLElement.sub()
- Creates an HTMLElement using the tag 'sub'.
- HTMLElement.summary()
- Creates an HTMLElement using the tag 'summary'.
- HTMLElement.sup()
- Creates an HTMLElement using the tag 'sup'.
- HTMLElement.tt()
- Creates an HTMLElement using the tag 'tt'.
- HTMLElement.u()
- Creates an HTMLElement using the tag 'u'.
- HTMLElement.var_()
- Creates an HTMLElement using the tag 'var'.
- HTMLElement.wbr()
- Creates an HTMLElement using the tag 'wbr'.
Properties
- accessKey ↔ String
-
The
HTMLElement.accessKey
property sets the keystroke which a user can press to jump to a given element.getter/setter pair - accessKeyLabel → String
-
The
HTMLElement.accessKeyLabel
read-only property returns a string containing the element's browser-assigned access key (if any); otherwise it returns an empty string.no setter - ariaAtomic ↔ String?
-
The
ariaAtomic
property of the Element interface reflects the value of thearia-atomic
attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by thearia-relevant
attribute.getter/setter pairinherited - ariaAutoComplete ↔ String?
-
The
ariaAutoComplete
property of the Element interface reflects the value of thearia-autocomplete
attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.getter/setter pairinherited - ariaBrailleLabel ↔ String?
-
The
ariaBrailleLabel
property of the Element interface reflects the value of thearia-braillelabel
attribute, which defines the ARIA braille label of the element.getter/setter pairinherited - ariaBrailleRoleDescription ↔ String?
-
The
ariaBrailleRoleDescription
property of the Element interface reflects the value of thearia-brailleroledescription
attribute, which defines the ARIA braille role description of the element.getter/setter pairinherited - ariaBusy ↔ String?
-
The
ariaBusy
property of the Element interface reflects the value of thearia-busy
attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.getter/setter pairinherited - ariaChecked ↔ String?
-
The
ariaChecked
property of the Element interface reflects the value of thearia-checked
attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.getter/setter pairinherited - ariaColCount ↔ String?
-
The
ariaColCount
property of the Element interface reflects the value of thearia-colcount
attribute, which defines the number of columns in a table, grid, or treegrid.getter/setter pairinherited - ariaColIndex ↔ String?
-
The
ariaColIndex
property of the Element interface reflects the value of thearia-colindex
attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.getter/setter pairinherited - ariaColSpan ↔ String?
-
The
ariaColSpan
property of the Element interface reflects the value of thearia-colspan
attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.getter/setter pairinherited - ariaCurrent ↔ String?
-
The
ariaCurrent
property of the Element interface reflects the value of thearia-current
attribute, which indicates the element that represents the current item within a container or set of related elements.getter/setter pairinherited - ariaDescription ↔ String?
-
The
ariaDescription
property of the Element interface reflects the value of thearia-description
attribute, which defines a string value that describes or annotates the current element.getter/setter pairinherited - ariaDisabled ↔ String?
-
The
ariaDisabled
property of the Element interface reflects the value of thearia-disabled
attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.getter/setter pairinherited - ariaExpanded ↔ String?
-
The
ariaExpanded
property of the Element interface reflects the value of thearia-expanded
attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.getter/setter pairinherited - ariaHasPopup ↔ String?
-
The
ariaHasPopup
property of the Element interface reflects the value of thearia-haspopup
attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.getter/setter pairinherited - ariaHidden ↔ String?
-
The
ariaHidden
property of the Element interface reflects the value of thearia-hidden
) attribute, which indicates whether the element is exposed to an accessibility API.getter/setter pairinherited - ariaInvalid ↔ String?
-
getter/setter pairinherited
- ariaKeyShortcuts ↔ String?
-
The
ariaKeyShortcuts
property of the Element interface reflects the value of thearia-keyshortcuts
attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.getter/setter pairinherited - ariaLabel ↔ String?
-
The
ariaLabel
property of the Element interface reflects the value of thearia-label
attribute, which defines a string value that labels the current element.getter/setter pairinherited - ariaLevel ↔ String?
-
The
ariaLevel
property of the Element interface reflects the value of thearia-level
attribute, which defines the hierarchical level of an element within a structure.getter/setter pairinherited - ariaLive ↔ String?
-
The
ariaLive
property of the Element interface reflects the value of thearia-live
attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.getter/setter pairinherited - ariaModal ↔ String?
-
The
ariaModal
property of the Element interface reflects the value of thearia-modal
attribute, which indicates whether an element is modal when displayed. Applying thearia-modal
property to an element withrole="dialog"
replaces the technique of using aria-hidden on the background for informing assistive technologies that content outside a dialog is inert.getter/setter pairinherited - ariaMultiLine ↔ String?
-
The
ariaMultiLine
property of the Element interface reflects the value of thearia-multiline
attribute, which indicates whether a text box accepts multiple lines of input or only a single line.getter/setter pairinherited - ariaMultiSelectable ↔ String?
-
The
ariaMultiSelectable
property of the Element interface reflects the value of thearia-multiselectable
attribute, which indicates that the user may select more than one item from the current selectable descendants.getter/setter pairinherited - ariaOrientation ↔ String?
-
The
ariaOrientation
property of the Element interface reflects the value of thearia-orientation
attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.getter/setter pairinherited - ariaPlaceholder ↔ String?
-
The
ariaPlaceholder
property of the Element interface reflects the value of thearia-placeholder
attribute, which defines a short hint intended to aid the user with data entry when the control has no value.getter/setter pairinherited - ariaPosInSet ↔ String?
-
The
ariaPosInSet
property of the Element interface reflects the value of thearia-posinset
attribute, which defines an element's number or position in the current set of listitems or treeitems.getter/setter pairinherited - ariaPressed ↔ String?
-
The
ariaPressed
property of the Element interface reflects the value of thearia-pressed
attribute, which indicates the current "pressed" state of toggle buttons.getter/setter pairinherited - ariaReadOnly ↔ String?
-
The
ariaReadOnly
property of the Element interface reflects the value of thearia-readonly
attribute, which indicates that the element is not editable, but is otherwise operable.getter/setter pairinherited - ariaRequired ↔ String?
-
The
ariaRequired
property of the Element interface reflects the value of thearia-required
attribute, which indicates that user input is required on the element before a form may be submitted.getter/setter pairinherited - ariaRoleDescription ↔ String?
-
The
ariaRoleDescription
property of the Element interface reflects the value of thearia-roledescription
attribute, which defines a human-readable, author-localized description for the role of an element.getter/setter pairinherited - ariaRowCount ↔ String?
-
The
ariaRowCount
property of the Element interface reflects the value of thearia-rowcount
attribute, which defines the total number of rows in a table, grid, or treegrid.getter/setter pairinherited - ariaRowIndex ↔ String?
-
The
ariaRowIndex
property of the Element interface reflects the value of thearia-rowindex
attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.getter/setter pairinherited - ariaRowSpan ↔ String?
-
The
ariaRowSpan
property of the Element interface reflects the value of thearia-rowspan
attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.getter/setter pairinherited - ariaSelected ↔ String?
-
The
ariaSelected
property of the Element interface reflects the value of thearia-selected
attribute, which indicates the current "selected" state of elements that have a selected state.getter/setter pairinherited - ariaSetSize ↔ String?
-
The
ariaSetSize
property of the Element interface reflects the value of thearia-setsize
attribute, which defines the number of items in the current set of listitems or treeitems.getter/setter pairinherited - ariaSort ↔ String?
-
The
ariaSort
property of the Element interface reflects the value of thearia-sort
attribute, which indicates if items in a table or grid are sorted in ascending or descending order.getter/setter pairinherited - ariaValueMax ↔ String?
-
The
ariaValueMax
property of the Element interface reflects the value of thearia-valuemax
attribute, which defines the maximum allowed value for a range widget.getter/setter pairinherited - ariaValueMin ↔ String?
-
The
ariaValueMin
property of the Element interface reflects the value of thearia-valuemin
attribute, which defines the minimum allowed value for a range widget.getter/setter pairinherited - ariaValueNow ↔ String?
-
The
ariaValueNow
property of the Element interface reflects the value of thearia-valuenow
attribute, which defines the current value for a range widget.getter/setter pairinherited - ariaValueText ↔ String?
-
The
ariaValueText
property of the Element interface reflects the value of thearia-valuetext
attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.getter/setter pairinherited - assignedSlot → HTMLSlotElement?
-
The
assignedSlot
read-only property of the Element interface returns an HTMLSlotElement representing theslot
element the node is inserted in.no setterinherited - attributes → NamedNodeMap
-
The
Element.attributes
property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap, not anArray
, so it has noArray
methods and the Attr nodes' indexes may differ among browsers. To be more specific,attributes
is a key/value pair of strings that represents any information regarding that attribute.no setterinherited - attributeStyleMap → StylePropertyMap
-
The
attributeStyleMap
read-only property of the HTMLElement interface returns a live StylePropertyMap object that contains a list of style properties of the element that are defined in the element's inlinestyle
attribute, or assigned using the HTMLElement.style property of the HTMLElement interface via script.no setter - autocapitalize ↔ String
-
The
autocapitalize
property of the HTMLElement interface represents the element's capitalization behavior for user input. It is available on all HTML elements, though it doesn't affect all of them, including:getter/setter pair - autofocus ↔ bool
-
The
autofocus
property of the HTMLElement interface represents a boolean value reflecting theautofocus
HTML global attribute, which indicates whether the control should be focused when the page loads, or when dialog or popover become shown if specified in an element insidedialog
elements or elements whose popover attribute is set.getter/setter pair - baseURI → String
-
The read-only
baseURI
property of the Node interface returns the absolute base URL of the document containing the node.no setterinherited - childElementCount → int
-
The
Element.childElementCount
read-only property returns the number of child elements of this element.no setterinherited - childNodes → NodeList
-
The read-only
childNodes
property of the Node interface returns a live NodeList of child Node of the given element where the first child node is assigned index0
. Child nodes include elements, text and comments.no setterinherited - children → HTMLCollection
-
The read-only
children
property returns a live HTMLCollection which contains all of the child Element of the element upon which it was called.no setterinherited - classList → DOMTokenList
-
The
Element.classList
is a read-only property that returns a live DOMTokenList collection of theclass
attributes of the element. This can then be used to manipulate the class list.no setterinherited - className ↔ String
-
The
className
property of the Element interface gets and sets the value of theclass
attribute of the specified element.getter/setter pairinherited - clientHeight → int
-
The
Element.clientHeight
read-only property is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels. It includes padding but excludes borders, margins, and horizontal scrollbars (if present).no setterinherited - clientLeft → int
-
The width of the left border of an element in pixels. It includes the
width of the
vertical scrollbar if the text direction of the element is right-to-left
and if there
is an overflow causing a left vertical scrollbar to be rendered.
clientLeft
does not include the left margin or the left padding.clientLeft
is read-only.no setterinherited - clientTop → int
-
The width of the top border of an element in pixels. It is a read-only,
integer
property of element.
no setterinherited
- clientWidth → int
-
The
Element.clientWidth
property is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels. It includes padding but excludes borders, margins, and vertical scrollbars (if present).no setterinherited - contentEditable ↔ String
-
The
contentEditable
property of the HTMLElement interface specifies whether or not the element is editable.getter/setter pair - dataset → DOMStringMap
-
The
dataset
read-only property of the HTMLElement interface provides read/write access to custom data attributes (data-*
) on elements. It exposes a map of strings (DOMStringMap) with an entry for eachdata-*
attribute.no setter - dir ↔ String
-
The
HTMLElement.dir
property gets or sets the text writing directionality of the content of the current element.getter/setter pair - draggable ↔ bool
-
The
draggable
property of the HTMLElement interface gets and sets aBoolean
primitive indicating if the element is draggable.getter/setter pair - enterKeyHint ↔ String
-
The
enterKeyHint
property is an enumerated property defining what action label (or icon) to present for the enter key on virtual keyboards. It reflects theenterkeyhint
HTML global attribute and is an enumerated property, only accepting the following values as a string:getter/setter pair - firstChild → Node?
-
The read-only
firstChild
property of the Node interface returns the node's first child in the tree, ornull
if the node has no children.no setterinherited - firstElementChild → Element?
-
The
Element.firstElementChild
read-only property returns an element's first child Element, ornull
if there are no child elements.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
The HTMLElement property
hidden
reflects the value of the element'shidden
attribute.getter/setter pair - id ↔ String
-
The
id
property of the Element interface represents the element's identifier, reflecting theid
global attribute.getter/setter pairinherited - inert ↔ bool
-
The HTMLElement property
inert
reflects the value of the element'sinert
attribute. It is a boolean value that, when present, makes the browser "ignore" user input events for the element, including focus events and events from assistive technologies. The browser may also ignore page search and text selection in the element. This can be useful when building UIs such as modals where you would want to "trap" the focus inside the modal when it's visible.getter/setter pair - innerHTML ↔ JSAny
-
The Element property
innerHTML
gets or sets the HTML or XML markup contained within the element.getter/setter pairinherited - innerText ↔ String
-
The
innerText
property of the HTMLElement interface represents the rendered text content of a node and its descendants.getter/setter pair - inputMode ↔ String
-
The HTMLElement property
inputMode
reflects the value of the element'sinputmode
attribute.getter/setter pair - isConnected → bool
-
The read-only
isConnected
property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.no setterinherited - isContentEditable → bool
-
The
HTMLElement.isContentEditable
read-only property returns a boolean value that istrue
if the contents of the element are editable; otherwise it returnsfalse
.no setter - isDefinedAndNotNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
no setter - isNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
Whether this value corresponds to JavaScriptnull
.no setter - isTruthy → JSBoolean
-
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of!!
in JavaScript.this
no setter - isUndefined → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
Whether this value corresponds to JavaScriptundefined
.no setter - isUndefinedOrNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
no setter - lang ↔ String
-
The
HTMLElement.lang
property gets or sets the base language of an element's attribute values and text content.getter/setter pair - lastChild → Node?
-
The read-only
lastChild
property of the Node interface returns the last child of the node, ornull
if there are no child nodes.no setterinherited - lastElementChild → Element?
-
The
Element.lastElementChild
read-only property returns an element's last child Element, ornull
if there are no child elements.no setterinherited - localName → String
-
The
Element.localName
read-only property returns the local part of the qualified name of an element.no setterinherited - namespaceURI → String?
-
The
Element.namespaceURI
read-only property returns the namespace URI of the element, ornull
if the element is not in a namespace.no setterinherited - nextElementSibling → Element?
-
The
Element.nextElementSibling
read-only property returns the element immediately following the specified one in its parent's children list, ornull
if the specified element is the last one in the list.no setterinherited - nextSibling → Node?
-
The read-only
nextSibling
property of the Node interface returns the node immediately following the specified one in their parent's Node.childNodes, or returnsnull
if the specified node is the last child in the parent element.no setterinherited - nodeName → String
-
The read-only
nodeName
property of Node returns the name of the current node as a string.no setterinherited - nodeType → int
-
The read-only
nodeType
property of a Node interface is an integer that identifies what the node is. It distinguishes different kind of nodes from each other, such as Element, Text and Comment.no setterinherited - nodeValue ↔ String?
-
The
nodeValue
property of the Node interface returns or sets the value of the current node.getter/setter pairinherited - nonce ↔ String
-
The
nonce
property of the HTMLElement interface returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.getter/setter pair - not → JSBoolean
-
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of!
in JavaScript.this
no setter - offsetHeight → int
-
The
HTMLElement.offsetHeight
read-only property returns the height of an element, including vertical padding and borders, as an integer.no setter - offsetLeft → int
-
The
HTMLElement.offsetLeft
read-only property returns the number of pixels that the upper left corner of the current element is offset to the left within the HTMLElement.offsetParent node.no setter - offsetParent → Element?
-
The
HTMLElement.offsetParent
read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.no setter - offsetTop → int
-
The
HTMLElement.offsetTop
read-only property returns the distance from the outer border of the current element (including its margin) to the top padding edge of theHTMLelement.offsetParent
, the closest positioned ancestor element.no setter - offsetWidth → int
-
The
HTMLElement.offsetWidth
read-only property returns the layout width of an element as an integer.no setter -
onAbort
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onabort ↔ EventHandler?
-
getter/setter pair
- onanimationcancel ↔ EventHandler?
-
getter/setter pair
- onanimationend ↔ EventHandler?
-
getter/setter pair
- onanimationiteration ↔ EventHandler?
-
getter/setter pair
- onanimationstart ↔ EventHandler?
-
getter/setter pair
- onauxclick ↔ EventHandler?
-
getter/setter pair
-
onBeforeCopy
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onBeforeCut
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onbeforeinput ↔ EventHandler?
-
getter/setter pair
-
onBeforePaste
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onbeforetoggle ↔ EventHandler?
-
getter/setter pair
-
onBlur
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onblur ↔ EventHandler?
-
getter/setter pair
- oncancel ↔ EventHandler?
-
getter/setter pair
-
onCanPlay
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncanplay ↔ EventHandler?
-
getter/setter pair
-
onCanPlayThrough
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncanplaythrough ↔ EventHandler?
-
getter/setter pair
-
onChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onchange ↔ EventHandler?
-
getter/setter pair
-
onClick
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onclick ↔ EventHandler?
-
getter/setter pair
- onclose ↔ EventHandler?
-
getter/setter pair
- oncontextlost ↔ EventHandler?
-
getter/setter pair
-
onContextMenu
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
getter/setter pair
- oncontextrestored ↔ EventHandler?
-
getter/setter pair
-
onCopy
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncopy ↔ EventHandler?
-
getter/setter pair
- oncuechange ↔ EventHandler?
-
getter/setter pair
-
onCut
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncut ↔ EventHandler?
-
getter/setter pair
- ondblclick ↔ EventHandler?
-
getter/setter pair
-
onDoubleClick
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onDrag
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondrag ↔ EventHandler?
-
getter/setter pair
- ondragend ↔ EventHandler?
-
getter/setter pair
-
onDragEnd
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragenter ↔ EventHandler?
-
getter/setter pair
-
onDragEnter
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragleave ↔ EventHandler?
-
getter/setter pair
-
onDragLeave
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragover ↔ EventHandler?
-
getter/setter pair
-
onDragOver
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragstart ↔ EventHandler?
-
getter/setter pair
-
onDragStart
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondrop ↔ EventHandler?
-
getter/setter pair
-
onDrop
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondurationchange ↔ EventHandler?
-
getter/setter pair
-
onDurationChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onemptied ↔ EventHandler?
-
getter/setter pair
-
onEmptied
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onended ↔ EventHandler?
-
getter/setter pair
-
onEnded
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onError
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onerror ↔ OnErrorEventHandler?
-
getter/setter pair
-
onFocus
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onfocus ↔ EventHandler?
-
getter/setter pair
- onformdata ↔ EventHandler?
-
getter/setter pair
-
onFullscreenChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onfullscreenchange ↔ EventHandler?
-
getter/setter pairinherited
-
onFullscreenError
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onfullscreenerror ↔ EventHandler?
-
getter/setter pairinherited
- ongotpointercapture ↔ EventHandler?
-
getter/setter pair
-
onInput
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oninput ↔ EventHandler?
-
getter/setter pair
-
onInvalid
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oninvalid ↔ EventHandler?
-
getter/setter pair
- onkeydown ↔ EventHandler?
-
getter/setter pair
-
onKeyDown
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onKeyPress
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onkeypress ↔ EventHandler?
-
getter/setter pair
-
onKeyUp
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onkeyup ↔ EventHandler?
-
getter/setter pair
-
onLoad
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onload ↔ EventHandler?
-
getter/setter pair
-
onLoadedData
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onloadeddata ↔ EventHandler?
-
getter/setter pair
-
onLoadedMetadata
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onloadedmetadata ↔ EventHandler?
-
getter/setter pair
- onloadstart ↔ EventHandler?
-
getter/setter pair
- onlostpointercapture ↔ EventHandler?
-
getter/setter pair
-
onMouseDown
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmousedown ↔ EventHandler?
-
getter/setter pair
- onmouseenter ↔ EventHandler?
-
getter/setter pair
-
onMouseEnter
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onMouseLeave
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseleave ↔ EventHandler?
-
getter/setter pair
-
onMouseMove
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmousemove ↔ EventHandler?
-
getter/setter pair
-
onMouseOut
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseout ↔ EventHandler?
-
getter/setter pair
-
onMouseOver
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseover ↔ EventHandler?
-
getter/setter pair
-
onMouseUp
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseup ↔ EventHandler?
-
getter/setter pair
-
onMouseWheel
→ ElementStream<
WheelEvent> -
Available on Element, provided by the ElementCustomEvents extension
no setter - onpaste ↔ EventHandler?
-
getter/setter pair
-
onPaste
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onPause
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onpause ↔ EventHandler?
-
getter/setter pair
-
onPlay
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onplay ↔ EventHandler?
-
getter/setter pair
-
onPlaying
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onplaying ↔ EventHandler?
-
getter/setter pair
- onpointercancel ↔ EventHandler?
-
getter/setter pair
- onpointerdown ↔ EventHandler?
-
getter/setter pair
- onpointerenter ↔ EventHandler?
-
getter/setter pair
- onpointerleave ↔ EventHandler?
-
getter/setter pair
- onpointermove ↔ EventHandler?
-
getter/setter pair
- onpointerout ↔ EventHandler?
-
getter/setter pair
- onpointerover ↔ EventHandler?
-
getter/setter pair
- onpointerup ↔ EventHandler?
-
getter/setter pair
- onprogress ↔ EventHandler?
-
getter/setter pair
-
onRateChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onratechange ↔ EventHandler?
-
getter/setter pair
- onreset ↔ EventHandler?
-
getter/setter pair
-
onReset
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onResize
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onresize ↔ EventHandler?
-
getter/setter pair
-
onScroll
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onscroll ↔ EventHandler?
-
getter/setter pair
- onscrollend ↔ EventHandler?
-
getter/setter pair
-
onSearch
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsecuritypolicyviolation ↔ EventHandler?
-
getter/setter pair
-
onSeeked
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onseeked ↔ EventHandler?
-
getter/setter pair
- onseeking ↔ EventHandler?
-
getter/setter pair
-
onSeeking
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onSelect
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onselect ↔ EventHandler?
-
getter/setter pair
- onselectionchange ↔ EventHandler?
-
getter/setter pair
- onselectstart ↔ EventHandler?
-
getter/setter pair
-
onSelectStart
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onslotchange ↔ EventHandler?
-
getter/setter pair
- onstalled ↔ EventHandler?
-
getter/setter pair
-
onStalled
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsubmit ↔ EventHandler?
-
getter/setter pair
-
onSubmit
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onSuspend
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsuspend ↔ EventHandler?
-
getter/setter pair
- ontimeupdate ↔ EventHandler?
-
getter/setter pair
-
onTimeUpdate
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontoggle ↔ EventHandler?
-
getter/setter pair
- ontouchcancel ↔ EventHandler?
-
getter/setter pair
-
onTouchCancel
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchend ↔ EventHandler?
-
getter/setter pair
-
onTouchEnd
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onTouchEnter
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onTouchLeave
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchmove ↔ EventHandler?
-
getter/setter pair
-
onTouchMove
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onTouchStart
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchstart ↔ EventHandler?
-
getter/setter pair
- ontransitioncancel ↔ EventHandler?
-
getter/setter pair
- ontransitionend ↔ EventHandler?
-
getter/setter pair
-
onTransitionEnd
→ ElementStream<
TransitionEvent> -
Available on Element, provided by the ElementCustomEvents extension
no setter - ontransitionrun ↔ EventHandler?
-
getter/setter pair
- ontransitionstart ↔ EventHandler?
-
getter/setter pair
-
onUnload
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onVolumeChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onvolumechange ↔ EventHandler?
-
getter/setter pair
- onwaiting ↔ EventHandler?
-
getter/setter pair
-
onWaiting
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onWebGlContextLost
→ ElementStream<
WebGLContextEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onWebGlContextRestored
→ ElementStream<
WebGLContextEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onWheel
→ ElementStream<
WheelEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onwheel ↔ EventHandler?
-
getter/setter pair
- outerHTML ↔ JSAny
-
The
outerHTML
attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants. It can also be set to replace the element with nodes parsed from the given string.getter/setter pairinherited - outerText ↔ String
-
The
outerText
property of the HTMLElement interface returns the same value as HTMLElement.innerText. When used as a setter it replaces the whole current node with the given text (this differs frominnerText
, which replaces the content inside the current node).getter/setter pair - ownerDocument → Document?
-
The read-only
ownerDocument
property of the Node interface returns the top-level document object of the node.no setterinherited - parentElement → Element?
-
The read-only
parentElement
property of Node interface returns the DOM node's parent Element, ornull
if the node either has no parent, or its parent isn't a DOM Element.no setterinherited - parentNode → Node?
-
The read-only
parentNode
property of the Node interface returns the parent of the specified node in the DOM tree.no setterinherited - part → DOMTokenList
-
The
part
property of the Element interface represents the part identifier(s) of the element (i.e. set using thepart
attribute), returned as a DOMTokenList. These can be used to style parts of a shadow DOM, via the pseudo-element.no setterinherited - popover ↔ String?
-
The
popover
property of the HTMLElement interface gets and sets an element's popover state via JavaScript ("auto"
or"manual"
), and can be used for feature detection.getter/setter pair - prefix → String?
-
The
Element.prefix
read-only property returns the namespace prefix of the specified element, ornull
if no prefix is specified.no setterinherited - previousElementSibling → Element?
-
The
Element.previousElementSibling
read-only property returns the Element immediately prior to the specified one in its parent's children list, ornull
if the specified element is the first one in the list.no setterinherited - previousSibling → Node?
-
The read-only
previousSibling
property of the Node interface returns the node immediately preceding the specified one in its parent's Node.childNodes list, ornull
if the specified node is the first in that list.no setterinherited - role ↔ String?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollHeight → int
-
The
Element.scrollHeight
read-only property is a measurement of the height of an element's content, including content not visible on the screen due to overflow.no setterinherited - scrollLeft ↔ double
-
The
Element.scrollLeft
property gets or sets the number of pixels by which an element's content is scrolled from its left edge. This value is subpixel precise in modern browsers, meaning that it isn't necessarily a whole number.getter/setter pairinherited - scrollTop ↔ double
-
The
Element.scrollTop
property gets or sets the number of pixels by which an element's content is scrolled from its top edge. This value is subpixel precise in modern browsers, meaning that it isn't necessarily a whole number.getter/setter pairinherited - scrollWidth → int
-
The
Element.scrollWidth
read-only property is a measurement of the width of an element's content, including content not visible on the screen due to overflow.no setterinherited - shadowRoot → ShadowRoot?
-
The
Element.shadowRoot
read-only property represents the shadow root hosted by the element.no setterinherited - slot ↔ String
-
The
slot
property of the Element interface returns the name of the shadow DOM slot the element is inserted in.getter/setter pairinherited - spellcheck ↔ bool
-
The
spellcheck
property of the HTMLElement interface represents a boolean value that controls the spell-checking hint. It is available on all HTML elements, though it doesn't affect all of them.getter/setter pair - style → CSSStyleDeclaration
-
The read-only
style
property of the HTMLElement returns the inline style of an element in the form of a live CSSStyleDeclaration object that contains a list of all styles properties for that element with values assigned only for the attributes that are defined in the element's inlinestyle
attribute.no setter - tabIndex ↔ int
-
The
tabIndex
property of the HTMLElement interface represents the tab order of the current element.getter/setter pair - tagName → String
-
The
tagName
read-only property of the Element interface returns the tag name of the element on which it's called.no setterinherited - text ← String
-
Available on Node, provided by the NodeGlue extension
no getter - textContent ↔ String?
-
The
textContent
property of the Node interface represents the text content of the node and its descendants.getter/setter pairinherited - title ↔ String
-
The
HTMLElement.title
property represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.getter/setter pair - translate ↔ bool
-
The
translate
property of the HTMLElement interface indicates whether an element's attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.getter/setter pair
Methods
-
add(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
+any
-
addEventListener(
String type, EventListener? callback, [JSAny options]) → void -
The
addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.inherited -
after(
JSAny nodes) → void -
The
Element.after()
method inserts a set of Node or string objects in the children list of theElement
's parent, just after theElement
. String objects are inserted as equivalent Text nodes.inherited -
and(
JSAny? any) → JSAny? -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
&&any
-
animate(
JSObject? keyframes, [JSAny options]) → Animation -
The Element interface's
animate()
method is a shortcut method which creates a new Animation, applies it to the element, then plays the animation. It returns the created Animation object instance.inherited -
append(
JSAny nodes) → void -
The
Element.append()
method inserts a set of Node objects or string objects after the last child of theElement
. String objects are inserted as equivalent Text nodes.inherited -
append(
Node other) → Node -
appendChild(
Node node) → Node -
The
appendChild()
method of the Node interface adds a node to the end of the list of children of a specified parent node.inherited -
attachInternals(
) → ElementInternals -
The
HTMLElement.attachInternals()
method returns an ElementInternals object. This method allows a custom element to participate in HTML forms. TheElementInternals
interface provides utilities for working with these elements in the same way you would work with any standard HTML form element, and also exposes the Accessibility Object Model to the element. -
attachShadow(
ShadowRootInit init) → ShadowRoot -
The
Element.attachShadow()
method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.inherited -
before(
JSAny nodes) → void -
The
Element.before()
method inserts a set of Node or string objects in the children list of thisElement
's parent, just before thisElement
. String objects are inserted as equivalent Text nodes.inherited -
blur(
) → void -
The
HTMLElement.blur()
method removes keyboard focus from the current element. -
callMethod<
R extends JSAny?> (JSAny method, [JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Callsmethod
on this JSObject with up to four arguments. -
callMethodVarArgs<
R extends JSAny?> (JSAny method, [List< JSAny?> ? arguments]) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Callsmethod
on this JSObject with a variable number ofarguments
. -
checkVisibility(
[CheckVisibilityOptions options]) → bool -
The
checkVisibility()
method of the Element interface checks whether the element is visible.inherited -
click(
) → void -
The
HTMLElement.click()
method simulates a mouse click on an element. When called on an element, the element'sElement.click_event
event is fired (unless itsdisabled
attribute is set). -
clone(
bool? deep) → Node -
cloneNode(
[bool deep]) → Node -
The
cloneNode()
method of the Node interface returns a duplicate of the node on which this method was called. Its parameter controls if the subtree contained in a node is also cloned or not.inherited -
closest(
String selectors) → Element? -
The
closest()
method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.inherited -
compareDocumentPosition(
Node other) → int -
The
compareDocumentPosition()
method of the Node interface reports the position of its argument node relative to the node on which it is called.inherited -
computedStyleMap(
) → StylePropertyMapReadOnly -
The
computedStyleMap()
method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.inherited -
contains(
Node? other) → bool -
The
contains()
method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.inherited -
dartify(
) → Object? -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Converts a JavaScript value to the Dart equivalent if possible. -
delete(
JSAny property) → JSBoolean -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Deletes the property with keyproperty
from this JSObject. -
dispatchEvent(
Event event) → bool -
The
dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually withdispatchEvent()
.inherited -
divide(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
/any
-
equals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
==any
-
exponentiate(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
**any
-
focus(
[FocusOptions options]) → void -
The
HTMLElement.focus()
method sets focus on the specified element, if it can be focused. The focused element is the element that will receive keyboard and similar events by default. -
getAnimations(
[GetAnimationsOptions options]) → JSArray< Animation> -
The
getAnimations()
method of the Element interface (specified on theAnimatable
mixin) returns an array of all Animation objects affecting this element or which are scheduled to do so in future. It can optionally return Animation objects for descendant elements too.inherited -
getAttribute(
String qualifiedName) → String? -
The
getAttribute()
method of the Element interface returns the value of a specified attribute on the element.inherited -
getAttributeNames(
) → JSArray< JSString> -
The
getAttributeNames()
method of the Element interface returns the attribute names of the element as anArray
of strings. If the element has no attributes it returns an empty array.inherited -
getAttributeNode(
String qualifiedName) → Attr? -
Returns the specified attribute of the specified element, as an Attr
node.
inherited
-
getAttributeNodeNS(
String? namespace, String localName) → Attr? -
The
getAttributeNodeNS()
method of the Element interface returns the namespaced Attr node of an element.inherited -
getAttributeNS(
String? namespace, String localName) → String? -
The
getAttributeNS()
method of the Element interface returns the string value of the attribute with the specified namespace and name. If the named attribute does not exist, the value returned will either benull
or""
(the empty string); see Notes for details.inherited -
getBoundingClientRect(
) → DOMRect -
The
Element.getBoundingClientRect()
method returns a DOMRect object providing information about the size of an element and its position relative to the viewport.inherited -
getClientRects(
) → DOMRectList -
The
getClientRects()
method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.inherited -
getElementsByClassName(
String classNames) → HTMLCollection -
The Element method
getElementsByClassName()
returns a live HTMLCollection which contains every descendant element which has the specified class name or names.inherited -
getElementsByTagName(
String qualifiedName) → HTMLCollection -
The
Element.getElementsByTagName()
method returns a live HTMLCollection of elements with the given tag name.inherited -
getElementsByTagNameNS(
String? namespace, String localName) → HTMLCollection -
The
Element.getElementsByTagNameNS()
method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace. It is similar to Document.getElementsByTagNameNS, except that its search is restricted to descendants of the specified element.inherited -
getHTML(
[GetHTMLOptions options]) → String -
The
getHTML()
method of the Element interface is used to serialize an element's DOM to an HTML string.inherited -
getProperty<
R extends JSAny?> (JSAny property) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
The value of the property keyproperty
of this JSObject. -
getRootNode(
[GetRootNodeOptions options]) → Node -
The
getRootNode()
method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.inherited -
greaterThan(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>any
-
greaterThanOrEqualTo(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>=any
-
has(
String property) → bool -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for hasProperty to check whether this JSObject contains the property keyproperty
, but takes and returns a Dart value. -
hasAttribute(
String qualifiedName) → bool -
The
Element.hasAttribute()
method returns a Boolean value indicating whether the specified element has the specified attribute or not.inherited -
hasAttributeNS(
String? namespace, String localName) → bool -
The
hasAttributeNS()
method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.inherited -
hasAttributes(
) → bool -
The
hasAttributes()
method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.inherited -
hasChildNodes(
) → bool -
The
hasChildNodes()
method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.inherited -
hasPointerCapture(
int pointerId) → bool -
The
hasPointerCapture()
method of the Element interface checks whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.inherited -
hasProperty(
JSAny property) → JSBoolean -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Whether or not this JSObject contains the property keyproperty
. -
hidePopover(
) → void -
The
hidePopover()
method of the HTMLElement interface hides a popover element (i.e. one that has a validpopover
attribute) by removing it from the and styling it withdisplay: none
. -
insertAdjacentElement(
String where, Element element) → Element? -
The
insertAdjacentElement()
method of the Element interface inserts a given element node at a given position relative to the element it is invoked upon.inherited -
insertAdjacentHTML(
String position, JSAny string) → void -
The
insertAdjacentHTML()
method of the Element interface parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position.inherited -
insertAdjacentText(
String where, String data) → void -
The
insertAdjacentText()
method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.inherited -
insertBefore(
Node node, Node? child) → Node -
The
insertBefore()
method of the Node interface inserts a node before a reference node as a child of a specified parent node.inherited -
instanceof(
JSFunction constructor) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is aninstanceof
constructor
. -
instanceOfString(
String constructorName) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is aninstanceof
the constructor that is defined byconstructorName
, which is looked up in the globalContext. -
isA<
T extends JSAny?> () → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is an instance of the JavaScript type that is declared byT
. -
isDefaultNamespace(
String? namespace) → bool -
The
isDefaultNamespace()
method of the Node interface accepts a namespace URI as an argument. It returns a boolean value that istrue
if the namespace is the default namespace on the given node andfalse
if not.inherited -
isEqualNode(
Node? otherNode) → bool -
The
isEqualNode()
method of the Node interface tests whether two nodes are equal. Two nodes are equal when they have the same type, defining characteristics (for elements, this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that must match varies depending on the types of the nodes.inherited -
isSameNode(
Node? otherNode) → bool -
The
isSameNode()
method of the Node interface is a legacy alias the for the===
strict equality operator. That is, it tests whether two nodes are the same (in other words, whether they reference the same object).inherited -
lessThan(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
<any
-
lessThanOrEqualTo(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
<=any
-
lookupNamespaceURI(
String? prefix) → String? -
The
lookupNamespaceURI()
method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (andnull
if not).inherited -
lookupPrefix(
String? namespace) → String? -
The
lookupPrefix()
method of the Node interface returns a string containing the prefix for a given namespace URI, if present, andnull
if not. When multiple prefixes are possible, the first prefix is returned.inherited -
matches(
String selectors) → bool -
The
matches()
method of the Element interface tests whether the element would be selected by the specified CSS selector.inherited -
modulo(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
%any
-
multiply(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
*any
-
normalize(
) → void -
The
normalize()
method of the Node interface puts the specified node and all of its sub-tree into a normalized form. In a normalized sub-tree, no text nodes in the sub-tree are empty and there are no adjacent text nodes.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
!=any
-
or(
JSAny? any) → JSAny? -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
||any
-
prepend(
JSAny nodes) → void -
The
Element.prepend()
method inserts a set of Node objects or string objects before the first child of the Element. String objects are inserted as equivalent Text nodes.inherited -
querySelector(
String selectors) → Element? -
The
querySelector()
method of the Element interface returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.inherited -
querySelectorAll(
String selectors) → NodeList -
The Element method
querySelectorAll()
returns a static (not live) NodeList representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.inherited -
releasePointerCapture(
int pointerId) → void -
The
releasePointerCapture()
method of the Element interface releases (stops) pointer capture that was previously set for a specific (PointerEvent) pointer.inherited -
remove(
) → void -
The
Element.remove()
method removes the element from the DOM.inherited -
removeAttribute(
String qualifiedName) → void -
The Element method
removeAttribute()
removes the attribute with the specified name from the element.inherited -
removeAttributeNode(
Attr attr) → Attr -
The
removeAttributeNode()
method of the Element interface removes the specified Attr node from the element.inherited -
removeAttributeNS(
String? namespace, String localName) → void -
The
removeAttributeNS()
method of the Element interface removes the specified attribute with the specified namespace from an element.inherited -
removeChild(
Node child) → Node -
The
removeChild()
method of the Node interface removes a child node from the DOM and returns the removed node.inherited -
removeEventListener(
String type, EventListener? callback, [JSAny options]) → void -
The
removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.inherited -
replaceChild(
Node node, Node child) → Node -
The
replaceChild()
method of the Node interface replaces a child node within the given (parent) node.inherited -
replaceChildren(
JSAny nodes) → void -
The
Element.replaceChildren()
method replaces the existing children of a Node with a specified new set of children. These can be string or Node objects.inherited -
replaceWith(
JSAny nodes) → void -
The
Element.replaceWith()
method replaces thisElement
in the children list of its parent with a set of Node or string objects. String objects are inserted as equivalent Text nodes.inherited -
requestFullscreen(
[FullscreenOptions options]) → JSPromise< JSAny?> -
The
Element.requestFullscreen()
method issues an asynchronous request to make the element be displayed in fullscreen mode.inherited -
requestPointerLock(
[PointerLockOptions options]) → JSPromise< JSAny?> -
The
requestPointerLock()
method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.inherited -
scroll(
[JSAny optionsOrX, num y]) → void -
The
scroll()
method of the Element interface scrolls the element to a particular set of coordinates inside a given element.inherited -
scrollBy(
[JSAny optionsOrX, num y]) → void -
The
scrollBy()
method of the Element interface scrolls an element by the given amount.inherited -
scrollIntoView(
[JSAny arg]) → void -
The Element interface's
scrollIntoView()
method scrolls the element's ancestor containers such that the element on whichscrollIntoView()
is called is visible to the user.inherited -
scrollTo(
[JSAny optionsOrX, num y]) → void -
The
scrollTo()
method of the Element interface scrolls to a particular set of coordinates inside a given element.inherited -
setAttribute(
String qualifiedName, String value) → void -
The
setAttribute()
method of the Element interface sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.inherited -
setAttributeNode(
Attr attr) → Attr? -
The
setAttributeNode()
method of the Element interface adds a new Attr node to the specified element.inherited -
setAttributeNodeNS(
Attr attr) → Attr? -
The
setAttributeNodeNS()
method of the Element interface adds a new namespaced Attr node to an element.inherited -
setAttributeNS(
String? namespace, String qualifiedName, String value) → void -
setAttributeNS
adds a new attribute or changes the value of an attribute with the given namespace and name.inherited -
setHTMLUnsafe(
JSAny html) → void -
The
setHTMLUnsafe()
method of the Element interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM. The input HTML may include declarative shadow roots.inherited -
setPointerCapture(
int pointerId) → void -
The
setPointerCapture()
method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture or theElement.pointerup_event
event is fired).inherited -
setProperty(
JSAny property, JSAny? value) → void -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Write thevalue
of property keyproperty
of this JSObject. -
showPopover(
) → void -
The
showPopover()
method of the HTMLElement interface shows aPopover_API
element (i.e. one that has a validpopover
attribute) by adding it to the . -
strictEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
===any
-
strictNotEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
!==any
-
subtract(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
-any
-
toggleAttribute(
String qualifiedName, [bool force]) → bool -
The
toggleAttribute()
method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element.inherited -
togglePopover(
[bool force]) → bool -
The
togglePopover()
method of the HTMLElement interface toggles aPopover_API
element (i.e. one that has a validpopover
attribute) between the hidden and showing states. -
toString(
) → String -
A string representation of this object.
inherited
-
typeofEquals(
String typeString) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether the result oftypeof
on thisJSAny?
istypeString
. -
unsignedRightShift(
JSAny? any) → JSNumber -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>>>any
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String property) → JSAny? -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for getProperty to get the value of the property keyproperty
of this JSObject, but takes and returns a Dart value. -
operator []=(
String property, JSAny? value) → void -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for setProperty to write thevalue
of the property keyproperty
of this JSObject, but takes a Dart value.