A wrapper around a plain canvas
The idea is to shield the user from the weird semantics of changing width and height of a canvas by making this a opaque block element instead and managing the internal render resolution of the canvas dynamically
Extends#
HTMLElement
Methods#
clear()#
clear(): void;Clear the canvas
This is useful when mounting the canvas into a new position in the DOM. If the canvas is not cleared, it will appear in the new DOM position, with its contents stretched to the new size. It will re-render correctly during the next animation frame, but for a brief moment the canvas contents can flash distorted.
Call clear() before mounting into the DOM to avoid this. This will cause
the canvas to be cleared until rendering the next frame.
Returns#
void
animate()#
animate(keyframes, options?): Animation;Parameters#
| Parameter | Type |
|---|---|
keyframes | Keyframe[] |
options? | number |
Returns#
Animation
Inherited from#
HTMLElement.animategetAnimations()#
getAnimations(options?): Animation[];Parameters#
| Parameter | Type |
|---|---|
options? | GetAnimationsOptions |
Returns#
Animation[]
Inherited from#
HTMLElement.getAnimationsafter()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.afterbefore()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.beforeremove()#
remove(): void;Removes node.
Returns#
void
Inherited from#
HTMLElement.removereplaceWith()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.replaceWithattachShadow()#
attachShadow(init): ShadowRoot;Creates a shadow root for element and returns it.
Parameters#
| Parameter | Type |
|---|---|
init | ShadowRootInit |
Returns#
ShadowRoot
Inherited from#
HTMLElement.attachShadowcheckVisibility()#
checkVisibility(options?): boolean;Parameters#
| Parameter | Type |
|---|---|
options? | CheckVisibilityOptions |
Returns#
boolean
Inherited from#
HTMLElement.checkVisibilityclosest()#
Call Signature#
closest<K>(selector): HTMLElementTagNameMap[K];Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selector | K |
Returns#
HTMLElementTagNameMap[K]
Inherited from#
HTMLElement.closestCall Signature#
closest<K>(selector): SVGElementTagNameMap[K];Type Parameters#
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selector | K |
Returns#
SVGElementTagNameMap[K]
Inherited from#
HTMLElement.closestCall Signature#
closest<K>(selector): MathMLElementTagNameMap[K];Type Parameters#
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selector | K |
Returns#
MathMLElementTagNameMap[K]
Inherited from#
HTMLElement.closestCall Signature#
closest<E>(selectors): E;Type Parameters#
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters#
| Parameter | Type |
|---|---|
selectors | string |
Returns#
E
Inherited from#
HTMLElement.closestcomputedStyleMap()#
computedStyleMap(): StylePropertyMapReadOnly;Returns#
StylePropertyMapReadOnly
Inherited from#
HTMLElement.computedStyleMapgetAttribute()#
getAttribute(qualifiedName): string;Returns element’s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns#
string
Inherited from#
HTMLElement.getAttributegetAttributeNS()#
getAttributeNS(namespace, localName): string;Returns element’s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters#
| Parameter | Type |
|---|---|
namespace | string |
localName | string |
Returns#
string
Inherited from#
HTMLElement.getAttributeNSgetAttributeNames()#
getAttributeNames(): string[];Returns the qualified names of all element’s attributes. Can contain duplicates.
Returns#
string[]
Inherited from#
HTMLElement.getAttributeNamesgetAttributeNode()#
getAttributeNode(qualifiedName): Attr;Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns#
Attr
Inherited from#
HTMLElement.getAttributeNodegetAttributeNodeNS()#
getAttributeNodeNS(namespace, localName): Attr;Parameters#
| Parameter | Type |
|---|---|
namespace | string |
localName | string |
Returns#
Attr
Inherited from#
HTMLElement.getAttributeNodeNSgetBoundingClientRect()#
getBoundingClientRect(): DOMRect;Returns#
DOMRect
Inherited from#
HTMLElement.getBoundingClientRectgetClientRects()#
getClientRects(): DOMRectList;Returns#
DOMRectList
Inherited from#
HTMLElement.getClientRectsgetElementsByClassName()#
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.
Parameters#
| Parameter | Type |
|---|---|
classNames | string |
Returns#
HTMLCollectionOf<Element>
Inherited from#
HTMLElement.getElementsByClassNamegetElementsByTagName()#
Call Signature#
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns#
HTMLCollectionOf<HTMLElementTagNameMap[K]>
Inherited from#
HTMLElement.getElementsByTagNameCall Signature#
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns#
HTMLCollectionOf<SVGElementTagNameMap[K]>
Inherited from#
HTMLElement.getElementsByTagNameCall Signature#
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns#
HTMLCollectionOf<MathMLElementTagNameMap[K]>
Inherited from#
HTMLElement.getElementsByTagNameCall Signature#
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns#
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Deprecated#
Inherited from#
HTMLElement.getElementsByTagNameCall Signature#
getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>;Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns#
HTMLCollectionOf<Element>
Inherited from#
HTMLElement.getElementsByTagNamegetElementsByTagNameNS()#
Call Signature#
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>;Parameters#
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/1999/xhtml" |
localName | string |
Returns#
HTMLCollectionOf<HTMLElement>
Inherited from#
HTMLElement.getElementsByTagNameNSCall Signature#
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>;Parameters#
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/2000/svg" |
localName | string |
Returns#
HTMLCollectionOf<SVGElement>
Inherited from#
HTMLElement.getElementsByTagNameNSCall Signature#
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>;Parameters#
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/1998/Math/MathML" |
localName | string |
Returns#
HTMLCollectionOf<MathMLElement>
Inherited from#
HTMLElement.getElementsByTagNameNSCall Signature#
getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>;Parameters#
| Parameter | Type |
|---|---|
namespace | string |
localName | string |
Returns#
HTMLCollectionOf<Element>
Inherited from#
HTMLElement.getElementsByTagNameNSgetHTML()#
getHTML(options?): string;Parameters#
| Parameter | Type |
|---|---|
options? | GetHTMLOptions |
Returns#
string
Inherited from#
HTMLElement.getHTMLhasAttribute()#
hasAttribute(qualifiedName): boolean;Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns#
boolean
Inherited from#
HTMLElement.hasAttributehasAttributeNS()#
hasAttributeNS(namespace, localName): boolean;Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters#
| Parameter | Type |
|---|---|
namespace | string |
localName | string |
Returns#
boolean
Inherited from#
HTMLElement.hasAttributeNShasAttributes()#
hasAttributes(): boolean;Returns true if element has attributes, and false otherwise.
Returns#
boolean
Inherited from#
HTMLElement.hasAttributeshasPointerCapture()#
hasPointerCapture(pointerId): boolean;Parameters#
| Parameter | Type |
|---|---|
pointerId | number |
Returns#
boolean
Inherited from#
HTMLElement.hasPointerCaptureinsertAdjacentElement()#
insertAdjacentElement(where, element): Element;Parameters#
| Parameter | Type |
|---|---|
where | InsertPosition |
element | Element |
Returns#
Element
Inherited from#
HTMLElement.insertAdjacentElementinsertAdjacentHTML()#
insertAdjacentHTML(position, string): void;Parameters#
| Parameter | Type |
|---|---|
position | InsertPosition |
string | string |
Returns#
void
Inherited from#
HTMLElement.insertAdjacentHTMLinsertAdjacentText()#
insertAdjacentText(where, data): void;Parameters#
| Parameter | Type |
|---|---|
where | InsertPosition |
data | string |
Returns#
void
Inherited from#
HTMLElement.insertAdjacentTextmatches()#
matches(selectors): boolean;Returns true if matching selectors against element’s root yields element, and false otherwise.
Parameters#
| Parameter | Type |
|---|---|
selectors | string |
Returns#
boolean
Inherited from#
HTMLElement.matchesreleasePointerCapture()#
releasePointerCapture(pointerId): void;Parameters#
| Parameter | Type |
|---|---|
pointerId | number |
Returns#
void
Inherited from#
HTMLElement.releasePointerCaptureremoveAttribute()#
removeAttribute(qualifiedName): void;Removes element’s first attribute whose qualified name is qualifiedName.
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns#
void
Inherited from#
HTMLElement.removeAttributeremoveAttributeNS()#
removeAttributeNS(namespace, localName): void;Removes element’s attribute whose namespace is namespace and local name is localName.
Parameters#
| Parameter | Type |
|---|---|
namespace | string |
localName | string |
Returns#
void
Inherited from#
HTMLElement.removeAttributeNSremoveAttributeNode()#
removeAttributeNode(attr): Attr;Parameters#
| Parameter | Type |
|---|---|
attr | Attr |
Returns#
Attr
Inherited from#
HTMLElement.removeAttributeNoderequestFullscreen()#
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.
Parameters#
| Parameter | Type |
|---|---|
options? | FullscreenOptions |
Returns#
Promise<void>
Inherited from#
HTMLElement.requestFullscreenrequestPointerLock()#
requestPointerLock(options?): Promise<void>;Parameters#
| Parameter | Type |
|---|---|
options? | PointerLockOptions |
Returns#
Promise<void>
Inherited from#
HTMLElement.requestPointerLockscroll()#
Call Signature#
scroll(options?): void;Parameters#
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns#
void
Inherited from#
HTMLElement.scrollCall Signature#
scroll(x, y): void;Parameters#
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns#
void
Inherited from#
HTMLElement.scrollscrollBy()#
Call Signature#
scrollBy(options?): void;Parameters#
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns#
void
Inherited from#
HTMLElement.scrollByCall Signature#
scrollBy(x, y): void;Parameters#
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns#
void
Inherited from#
HTMLElement.scrollByscrollIntoView()#
scrollIntoView(arg?): void;Parameters#
| Parameter | Type |
|---|---|
arg? | boolean |
Returns#
void
Inherited from#
HTMLElement.scrollIntoViewscrollTo()#
Call Signature#
scrollTo(options?): void;Parameters#
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns#
void
Inherited from#
HTMLElement.scrollToCall Signature#
scrollTo(x, y): void;Parameters#
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns#
void
Inherited from#
HTMLElement.scrollTosetAttribute()#
setAttribute(qualifiedName, value): void;Sets the value of element’s first attribute whose qualified name is qualifiedName to value.
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
value | string |
Returns#
void
Inherited from#
HTMLElement.setAttributesetAttributeNS()#
setAttributeNS( namespace, qualifiedName, value): void;Sets the value of element’s attribute whose namespace is namespace and local name is localName to value.
Parameters#
| Parameter | Type |
|---|---|
namespace | string |
qualifiedName | string |
value | string |
Returns#
void
Inherited from#
HTMLElement.setAttributeNSsetAttributeNode()#
setAttributeNode(attr): Attr;Parameters#
| Parameter | Type |
|---|---|
attr | Attr |
Returns#
Attr
Inherited from#
HTMLElement.setAttributeNodesetAttributeNodeNS()#
setAttributeNodeNS(attr): Attr;Parameters#
| Parameter | Type |
|---|---|
attr | Attr |
Returns#
Attr
Inherited from#
HTMLElement.setAttributeNodeNSsetHTMLUnsafe()#
setHTMLUnsafe(html): void;Parameters#
| Parameter | Type |
|---|---|
html | string |
Returns#
void
Inherited from#
HTMLElement.setHTMLUnsafesetPointerCapture()#
setPointerCapture(pointerId): void;Parameters#
| Parameter | Type |
|---|---|
pointerId | number |
Returns#
void
Inherited from#
HTMLElement.setPointerCapturetoggleAttribute()#
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.
Parameters#
| Parameter | Type |
|---|---|
qualifiedName | string |
force? | boolean |
Returns#
boolean
Inherited from#
HTMLElement.toggleAttributewebkitMatchesSelector()#
webkitMatchesSelector(selectors): boolean;Parameters#
| Parameter | Type |
|---|---|
selectors | string |
Returns#
boolean
Deprecated#
This is a legacy alias of matches.
Inherited from#
HTMLElement.webkitMatchesSelectordispatchEvent()#
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.
Parameters#
| Parameter | Type |
|---|---|
event | Event |
Returns#
boolean
Inherited from#
HTMLElement.dispatchEventattachInternals()#
attachInternals(): ElementInternals;Returns#
ElementInternals
Inherited from#
HTMLElement.attachInternalsclick()#
click(): void;Returns#
void
Inherited from#
HTMLElement.clickhidePopover()#
hidePopover(): void;Returns#
void
Inherited from#
HTMLElement.hidePopovershowPopover()#
showPopover(): void;Returns#
void
Inherited from#
HTMLElement.showPopovertogglePopover()#
togglePopover(force?): boolean;Parameters#
| Parameter | Type |
|---|---|
force? | boolean |
Returns#
boolean
Inherited from#
HTMLElement.togglePopoveraddEventListener()#
Call Signature#
addEventListener<K>( type, listener, options?): void;Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementEventMap |
Parameters#
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean |
Returns#
void
Inherited from#
HTMLElement.addEventListenerCall Signature#
addEventListener( type, listener, options?): void;Parameters#
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean |
Returns#
void
Inherited from#
HTMLElement.addEventListenerremoveEventListener()#
Call Signature#
removeEventListener<K>( type, listener, options?): void;Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementEventMap |
Parameters#
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean |
Returns#
void
Inherited from#
HTMLElement.removeEventListenerCall Signature#
removeEventListener( type, listener, options?): void;Parameters#
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean |
Returns#
void
Inherited from#
HTMLElement.removeEventListenerblur()#
blur(): void;Returns#
void
Inherited from#
HTMLElement.blurfocus()#
focus(options?): void;Parameters#
| Parameter | Type |
|---|---|
options? | FocusOptions |
Returns#
void
Inherited from#
HTMLElement.focusappendChild()#
appendChild<T>(node): T;Type Parameters#
| Type Parameter |
|---|
T extends Node |
Parameters#
| Parameter | Type |
|---|---|
node | T |
Returns#
T
Inherited from#
HTMLElement.appendChildcloneNode()#
cloneNode(deep?): Node;Returns a copy of node. If deep is true, the copy also includes the node’s descendants.
Parameters#
| Parameter | Type |
|---|---|
deep? | boolean |
Returns#
Node
Inherited from#
HTMLElement.cloneNodecompareDocumentPosition()#
compareDocumentPosition(other): number;Returns a bitmask indicating the position of other relative to node.
Parameters#
| Parameter | Type |
|---|---|
other | Node |
Returns#
number
Inherited from#
HTMLElement.compareDocumentPositioncontains()#
contains(other): boolean;Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters#
| Parameter | Type |
|---|---|
other | Node |
Returns#
boolean
Inherited from#
HTMLElement.containsgetRootNode()#
getRootNode(options?): Node;Returns node’s root.
Parameters#
| Parameter | Type |
|---|---|
options? | GetRootNodeOptions |
Returns#
Node
Inherited from#
HTMLElement.getRootNodehasChildNodes()#
hasChildNodes(): boolean;Returns whether node has children.
Returns#
boolean
Inherited from#
HTMLElement.hasChildNodesinsertBefore()#
insertBefore<T>(node, child): T;Type Parameters#
| Type Parameter |
|---|
T extends Node |
Parameters#
| Parameter | Type |
|---|---|
node | T |
child | Node |
Returns#
T
Inherited from#
HTMLElement.insertBeforeisDefaultNamespace()#
isDefaultNamespace(namespace): boolean;Parameters#
| Parameter | Type |
|---|---|
namespace | string |
Returns#
boolean
Inherited from#
HTMLElement.isDefaultNamespaceisEqualNode()#
isEqualNode(otherNode): boolean;Returns whether node and otherNode have the same properties.
Parameters#
| Parameter | Type |
|---|---|
otherNode | Node |
Returns#
boolean
Inherited from#
HTMLElement.isEqualNodeisSameNode()#
isSameNode(otherNode): boolean;Parameters#
| Parameter | Type |
|---|---|
otherNode | Node |
Returns#
boolean
Inherited from#
HTMLElement.isSameNodelookupNamespaceURI()#
lookupNamespaceURI(prefix): string;Parameters#
| Parameter | Type |
|---|---|
prefix | string |
Returns#
string
Inherited from#
HTMLElement.lookupNamespaceURIlookupPrefix()#
lookupPrefix(namespace): string;Parameters#
| Parameter | Type |
|---|---|
namespace | string |
Returns#
string
Inherited from#
HTMLElement.lookupPrefixnormalize()#
normalize(): void;Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns#
void
Inherited from#
HTMLElement.normalizeremoveChild()#
removeChild<T>(child): T;Type Parameters#
| Type Parameter |
|---|
T extends Node |
Parameters#
| Parameter | Type |
|---|---|
child | T |
Returns#
T
Inherited from#
HTMLElement.removeChildreplaceChild()#
replaceChild<T>(node, child): T;Type Parameters#
| Type Parameter |
|---|
T extends Node |
Parameters#
| Parameter | Type |
|---|---|
node | Node |
child | T |
Returns#
T
Inherited from#
HTMLElement.replaceChildappend()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.appendprepend()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.prependquerySelector()#
Call Signature#
querySelector<K>(selectors): HTMLElementTagNameMap[K];Returns the first element that is a descendant of node that matches selectors.
Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
HTMLElementTagNameMap[K]
Inherited from#
HTMLElement.querySelectorCall Signature#
querySelector<K>(selectors): SVGElementTagNameMap[K];Type Parameters#
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
SVGElementTagNameMap[K]
Inherited from#
HTMLElement.querySelectorCall Signature#
querySelector<K>(selectors): MathMLElementTagNameMap[K];Type Parameters#
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
MathMLElementTagNameMap[K]
Inherited from#
HTMLElement.querySelectorCall Signature#
querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K];Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
HTMLElementDeprecatedTagNameMap[K]
Deprecated#
Inherited from#
HTMLElement.querySelectorCall Signature#
querySelector<E>(selectors): E;Type Parameters#
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters#
| Parameter | Type |
|---|---|
selectors | string |
Returns#
E
Inherited from#
HTMLElement.querySelectorquerySelectorAll()#
Call Signature#
querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>;Returns all element descendants of node that match selectors.
Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
NodeListOf<HTMLElementTagNameMap[K]>
Inherited from#
HTMLElement.querySelectorAllCall Signature#
querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
NodeListOf<SVGElementTagNameMap[K]>
Inherited from#
HTMLElement.querySelectorAllCall Signature#
querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
NodeListOf<MathMLElementTagNameMap[K]>
Inherited from#
HTMLElement.querySelectorAllCall Signature#
querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;Type Parameters#
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters#
| Parameter | Type |
|---|---|
selectors | K |
Returns#
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Deprecated#
Inherited from#
HTMLElement.querySelectorAllCall Signature#
querySelectorAll<E>(selectors): NodeListOf<E>;Type Parameters#
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters#
| Parameter | Type |
|---|---|
selectors | string |
Returns#
NodeListOf<E>
Inherited from#
HTMLElement.querySelectorAllreplaceChildren()#
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.
Parameters#
| Parameter | Type |
|---|---|
…nodes | (string |
Returns#
void
Inherited from#
HTMLElement.replaceChildrenProperties#
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
ariaAtomic | public | string | MDN Reference | HTMLElement.ariaAtomic |
ariaAutoComplete | public | string | MDN Reference | HTMLElement.ariaAutoComplete |
ariaBrailleLabel | public | string | MDN Reference | HTMLElement.ariaBrailleLabel |
ariaBrailleRoleDescription | public | string | MDN Reference | HTMLElement.ariaBrailleRoleDescription |
ariaBusy | public | string | MDN Reference | HTMLElement.ariaBusy |
ariaChecked | public | string | MDN Reference | HTMLElement.ariaChecked |
ariaColCount | public | string | MDN Reference | HTMLElement.ariaColCount |
ariaColIndex | public | string | MDN Reference | HTMLElement.ariaColIndex |
ariaColSpan | public | string | MDN Reference | HTMLElement.ariaColSpan |
ariaCurrent | public | string | MDN Reference | HTMLElement.ariaCurrent |
ariaDescription | public | string | MDN Reference | HTMLElement.ariaDescription |
ariaDisabled | public | string | MDN Reference | HTMLElement.ariaDisabled |
ariaExpanded | public | string | MDN Reference | HTMLElement.ariaExpanded |
ariaHasPopup | public | string | MDN Reference | HTMLElement.ariaHasPopup |
ariaHidden | public | string | MDN Reference | HTMLElement.ariaHidden |
ariaInvalid | public | string | - | HTMLElement.ariaInvalid |
ariaKeyShortcuts | public | string | MDN Reference | HTMLElement.ariaKeyShortcuts |
ariaLabel | public | string | MDN Reference | HTMLElement.ariaLabel |
ariaLevel | public | string | MDN Reference | HTMLElement.ariaLevel |
ariaLive | public | string | MDN Reference | HTMLElement.ariaLive |
ariaModal | public | string | MDN Reference | HTMLElement.ariaModal |
ariaMultiLine | public | string | MDN Reference | HTMLElement.ariaMultiLine |
ariaMultiSelectable | public | string | MDN Reference | HTMLElement.ariaMultiSelectable |
ariaOrientation | public | string | MDN Reference | HTMLElement.ariaOrientation |
ariaPlaceholder | public | string | MDN Reference | HTMLElement.ariaPlaceholder |
ariaPosInSet | public | string | MDN Reference | HTMLElement.ariaPosInSet |
ariaPressed | public | string | MDN Reference | HTMLElement.ariaPressed |
ariaReadOnly | public | string | MDN Reference | HTMLElement.ariaReadOnly |
ariaRequired | public | string | MDN Reference | HTMLElement.ariaRequired |
ariaRoleDescription | public | string | MDN Reference | HTMLElement.ariaRoleDescription |
ariaRowCount | public | string | MDN Reference | HTMLElement.ariaRowCount |
ariaRowIndex | public | string | MDN Reference | HTMLElement.ariaRowIndex |
ariaRowSpan | public | string | MDN Reference | HTMLElement.ariaRowSpan |
ariaSelected | public | string | MDN Reference | HTMLElement.ariaSelected |
ariaSetSize | public | string | MDN Reference | HTMLElement.ariaSetSize |
ariaSort | public | string | MDN Reference | HTMLElement.ariaSort |
ariaValueMax | public | string | MDN Reference | HTMLElement.ariaValueMax |
ariaValueMin | public | string | MDN Reference | HTMLElement.ariaValueMin |
ariaValueNow | public | string | MDN Reference | HTMLElement.ariaValueNow |
ariaValueText | public | string | MDN Reference | HTMLElement.ariaValueText |
role | public | string | - | HTMLElement.role |
attributes | readonly | NamedNodeMap | MDN Reference | HTMLElement.attributes |
classList | readonly | DOMTokenList | Allows for manipulation of element’s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. MDN Reference | HTMLElement.classList |
className | public | string | Returns the value of element’s class content attribute. Can be set to change it. MDN Reference | HTMLElement.className |
clientHeight | readonly | number | MDN Reference | HTMLElement.clientHeight |
clientLeft | readonly | number | MDN Reference | HTMLElement.clientLeft |
clientTop | readonly | number | MDN Reference | HTMLElement.clientTop |
clientWidth | readonly | number | MDN Reference | HTMLElement.clientWidth |
id | public | string | Returns the value of element’s id content attribute. Can be set to change it. MDN Reference | HTMLElement.id |
innerHTML | public | string | MDN Reference | HTMLElement.innerHTML |
localName | readonly | string | Returns the local name. MDN Reference | HTMLElement.localName |
namespaceURI | readonly | string | Returns the namespace. MDN Reference | HTMLElement.namespaceURI |
onfullscreenchange | public | (this, ev) => any | MDN Reference | HTMLElement.onfullscreenchange |
onfullscreenerror | public | (this, ev) => any | MDN Reference | HTMLElement.onfullscreenerror |
outerHTML | public | string | MDN Reference | HTMLElement.outerHTML |
ownerDocument | readonly | Document | Returns the node document. Returns null for documents. MDN Reference | HTMLElement.ownerDocument |
part | readonly | DOMTokenList | MDN Reference | HTMLElement.part |
prefix | readonly | string | Returns the namespace prefix. MDN Reference | HTMLElement.prefix |
scrollHeight | readonly | number | MDN Reference | HTMLElement.scrollHeight |
scrollLeft | public | number | MDN Reference | HTMLElement.scrollLeft |
scrollTop | public | number | MDN Reference | HTMLElement.scrollTop |
scrollWidth | readonly | number | MDN Reference | HTMLElement.scrollWidth |
shadowRoot | readonly | ShadowRoot | Returns element’s shadow root, if any, and if shadow root’s mode is “open”, and null otherwise. MDN Reference | HTMLElement.shadowRoot |
slot | public | string | Returns the value of element’s slot content attribute. Can be set to change it. MDN Reference | HTMLElement.slot |
tagName | readonly | string | Returns the HTML-uppercased qualified name. MDN Reference | HTMLElement.tagName |
attributeStyleMap | readonly | StylePropertyMap | MDN Reference | HTMLElement.attributeStyleMap |
style | readonly | CSSStyleDeclaration | MDN Reference | HTMLElement.style |
contentEditable | public | string | MDN Reference | HTMLElement.contentEditable |
enterKeyHint | public | string | MDN Reference | HTMLElement.enterKeyHint |
inputMode | public | string | MDN Reference | HTMLElement.inputMode |
isContentEditable | readonly | boolean | MDN Reference | HTMLElement.isContentEditable |
onabort | public | (this, ev) => any | Fires when the user aborts the download. | HTMLElement.onabort |
onanimationcancel | public | (this, ev) => any | MDN Reference | HTMLElement.onanimationcancel |
onanimationend | public | (this, ev) => any | MDN Reference | HTMLElement.onanimationend |
onanimationiteration | public | (this, ev) => any | MDN Reference | HTMLElement.onanimationiteration |
onanimationstart | public | (this, ev) => any | MDN Reference | HTMLElement.onanimationstart |
onauxclick | public | (this, ev) => any | MDN Reference | HTMLElement.onauxclick |
onbeforeinput | public | (this, ev) => any | MDN Reference | HTMLElement.onbeforeinput |
onbeforetoggle | public | (this, ev) => any | MDN Reference | HTMLElement.onbeforetoggle |
onblur | public | (this, ev) => any | Fires when the object loses the input focus. | HTMLElement.onblur |
oncancel | public | (this, ev) => any | MDN Reference | HTMLElement.oncancel |
oncanplay | public | (this, ev) => any | Occurs when playback is possible, but would require further buffering. | HTMLElement.oncanplay |
oncanplaythrough | public | (this, ev) => any | MDN Reference | HTMLElement.oncanplaythrough |
onchange | public | (this, ev) => any | Fires when the contents of the object or selection have changed. | HTMLElement.onchange |
onclick | public | (this, ev) => any | Fires when the user clicks the left mouse button on the object | HTMLElement.onclick |
onclose | public | (this, ev) => any | MDN Reference | HTMLElement.onclose |
oncontextlost | public | (this, ev) => any | MDN Reference | HTMLElement.oncontextlost |
oncontextmenu | public | (this, ev) => any | Fires when the user clicks the right mouse button in the client area, opening the context menu. | HTMLElement.oncontextmenu |
oncontextrestored | public | (this, ev) => any | MDN Reference | HTMLElement.oncontextrestored |
oncopy | public | (this, ev) => any | MDN Reference | HTMLElement.oncopy |
oncuechange | public | (this, ev) => any | MDN Reference | HTMLElement.oncuechange |
oncut | public | (this, ev) => any | MDN Reference | HTMLElement.oncut |
ondblclick | public | (this, ev) => any | Fires when the user double-clicks the object. | HTMLElement.ondblclick |
ondrag | public | (this, ev) => any | Fires on the source object continuously during a drag operation. | HTMLElement.ondrag |
ondragend | public | (this, ev) => any | Fires on the source object when the user releases the mouse at the close of a drag operation. | HTMLElement.ondragend |
ondragenter | public | (this, ev) => any | Fires on the target element when the user drags the object to a valid drop target. | HTMLElement.ondragenter |
ondragleave | public | (this, ev) => any | Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. | HTMLElement.ondragleave |
ondragover | public | (this, ev) => any | Fires on the target element continuously while the user drags the object over a valid drop target. | HTMLElement.ondragover |
ondragstart | public | (this, ev) => any | Fires on the source object when the user starts to drag a text selection or selected object. | HTMLElement.ondragstart |
ondrop | public | (this, ev) => any | MDN Reference | HTMLElement.ondrop |
ondurationchange | public | (this, ev) => any | Occurs when the duration attribute is updated. | HTMLElement.ondurationchange |
onemptied | public | (this, ev) => any | Occurs when the media element is reset to its initial state. | HTMLElement.onemptied |
onended | public | (this, ev) => any | Occurs when the end of playback is reached. | HTMLElement.onended |
onerror | public | OnErrorEventHandlerNonNull | Fires when an error occurs during object loading. Param The event. MDN Reference | HTMLElement.onerror |
onfocus | public | (this, ev) => any | Fires when the object receives focus. | HTMLElement.onfocus |
onformdata | public | (this, ev) => any | MDN Reference | HTMLElement.onformdata |
ongotpointercapture | public | (this, ev) => any | MDN Reference | HTMLElement.ongotpointercapture |
oninput | public | (this, ev) => any | MDN Reference | HTMLElement.oninput |
oninvalid | public | (this, ev) => any | MDN Reference | HTMLElement.oninvalid |
onkeydown | public | (this, ev) => any | Fires when the user presses a key. | HTMLElement.onkeydown |
onkeypress | public | (this, ev) => any | Fires when the user presses an alphanumeric key. Deprecated MDN Reference | HTMLElement.onkeypress |
onkeyup | public | (this, ev) => any | Fires when the user releases a key. | HTMLElement.onkeyup |
onload | public | (this, ev) => any | Fires immediately after the browser loads the object. | HTMLElement.onload |
onloadeddata | public | (this, ev) => any | Occurs when media data is loaded at the current playback position. | HTMLElement.onloadeddata |
onloadedmetadata | public | (this, ev) => any | Occurs when the duration and dimensions of the media have been determined. | HTMLElement.onloadedmetadata |
onloadstart | public | (this, ev) => any | Occurs when Internet Explorer begins looking for media data. | HTMLElement.onloadstart |
onlostpointercapture | public | (this, ev) => any | MDN Reference | HTMLElement.onlostpointercapture |
onmousedown | public | (this, ev) => any | Fires when the user clicks the object with either mouse button. | HTMLElement.onmousedown |
onmouseenter | public | (this, ev) => any | MDN Reference | HTMLElement.onmouseenter |
onmouseleave | public | (this, ev) => any | MDN Reference | HTMLElement.onmouseleave |
onmousemove | public | (this, ev) => any | Fires when the user moves the mouse over the object. | HTMLElement.onmousemove |
onmouseout | public | (this, ev) => any | Fires when the user moves the mouse pointer outside the boundaries of the object. | HTMLElement.onmouseout |
onmouseover | public | (this, ev) => any | Fires when the user moves the mouse pointer into the object. | HTMLElement.onmouseover |
onmouseup | public | (this, ev) => any | Fires when the user releases a mouse button while the mouse is over the object. | HTMLElement.onmouseup |
onpaste | public | (this, ev) => any | MDN Reference | HTMLElement.onpaste |
onpause | public | (this, ev) => any | Occurs when playback is paused. | HTMLElement.onpause |
onplay | public | (this, ev) => any | Occurs when the play method is requested. | HTMLElement.onplay |
onplaying | public | (this, ev) => any | Occurs when the audio or video has started playing. | HTMLElement.onplaying |
onpointercancel | public | (this, ev) => any | MDN Reference | HTMLElement.onpointercancel |
onpointerdown | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerdown |
onpointerenter | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerenter |
onpointerleave | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerleave |
onpointermove | public | (this, ev) => any | MDN Reference | HTMLElement.onpointermove |
onpointerout | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerout |
onpointerover | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerover |
onpointerup | public | (this, ev) => any | MDN Reference | HTMLElement.onpointerup |
onprogress | public | (this, ev) => any | Occurs to indicate progress while downloading media data. | HTMLElement.onprogress |
onratechange | public | (this, ev) => any | Occurs when the playback rate is increased or decreased. | HTMLElement.onratechange |
onreset | public | (this, ev) => any | Fires when the user resets a form. | HTMLElement.onreset |
onresize | public | (this, ev) => any | MDN Reference | HTMLElement.onresize |
onscroll | public | (this, ev) => any | Fires when the user repositions the scroll box in the scroll bar on the object. | HTMLElement.onscroll |
onscrollend | public | (this, ev) => any | MDN Reference | HTMLElement.onscrollend |
onsecuritypolicyviolation | public | (this, ev) => any | MDN Reference | HTMLElement.onsecuritypolicyviolation |
onseeked | public | (this, ev) => any | Occurs when the seek operation ends. | HTMLElement.onseeked |
onseeking | public | (this, ev) => any | Occurs when the current playback position is moved. | HTMLElement.onseeking |
onselect | public | (this, ev) => any | Fires when the current selection changes. | HTMLElement.onselect |
onselectionchange | public | (this, ev) => any | MDN Reference | HTMLElement.onselectionchange |
onselectstart | public | (this, ev) => any | MDN Reference | HTMLElement.onselectstart |
onslotchange | public | (this, ev) => any | MDN Reference | HTMLElement.onslotchange |
onstalled | public | (this, ev) => any | Occurs when the download has stopped. | HTMLElement.onstalled |
onsubmit | public | (this, ev) => any | MDN Reference | HTMLElement.onsubmit |
onsuspend | public | (this, ev) => any | Occurs if the load operation has been intentionally halted. | HTMLElement.onsuspend |
ontimeupdate | public | (this, ev) => any | Occurs to indicate the current playback position. | HTMLElement.ontimeupdate |
ontoggle | public | (this, ev) => any | MDN Reference | HTMLElement.ontoggle |
ontouchcancel? | public | (this, ev) => any | MDN Reference | HTMLElement.ontouchcancel |
ontouchend? | public | (this, ev) => any | MDN Reference | HTMLElement.ontouchend |
ontouchmove? | public | (this, ev) => any | MDN Reference | HTMLElement.ontouchmove |
ontouchstart? | public | (this, ev) => any | MDN Reference | HTMLElement.ontouchstart |
ontransitioncancel | public | (this, ev) => any | MDN Reference | HTMLElement.ontransitioncancel |
ontransitionend | public | (this, ev) => any | MDN Reference | HTMLElement.ontransitionend |
ontransitionrun | public | (this, ev) => any | MDN Reference | HTMLElement.ontransitionrun |
ontransitionstart | public | (this, ev) => any | MDN Reference | HTMLElement.ontransitionstart |
onvolumechange | public | (this, ev) => any | Occurs when the volume is changed, or playback is muted or unmuted. | HTMLElement.onvolumechange |
onwaiting | public | (this, ev) => any | Occurs when playback stops because the next frame of a video resource is not available. | HTMLElement.onwaiting |
onwebkitanimationend | public | (this, ev) => any | Deprecated This is a legacy alias of onanimationend. MDN Reference | HTMLElement.onwebkitanimationend |
onwebkitanimationiteration | public | (this, ev) => any | Deprecated This is a legacy alias of onanimationiteration. MDN Reference | HTMLElement.onwebkitanimationiteration |
onwebkitanimationstart | public | (this, ev) => any | Deprecated This is a legacy alias of onanimationstart. MDN Reference | HTMLElement.onwebkitanimationstart |
onwebkittransitionend | public | (this, ev) => any | Deprecated This is a legacy alias of ontransitionend. MDN Reference | HTMLElement.onwebkittransitionend |
onwheel | public | (this, ev) => any | MDN Reference | HTMLElement.onwheel |
accessKey | public | string | MDN Reference | HTMLElement.accessKey |
accessKeyLabel | readonly | string | MDN Reference | HTMLElement.accessKeyLabel |
autocapitalize | public | string | MDN Reference | HTMLElement.autocapitalize |
dir | public | string | MDN Reference | HTMLElement.dir |
draggable | public | boolean | MDN Reference | HTMLElement.draggable |
hidden | public | boolean | MDN Reference | HTMLElement.hidden |
inert | public | boolean | MDN Reference | HTMLElement.inert |
innerText | public | string | MDN Reference | HTMLElement.innerText |
lang | public | string | MDN Reference | HTMLElement.lang |
offsetHeight | readonly | number | MDN Reference | HTMLElement.offsetHeight |
offsetLeft | readonly | number | MDN Reference | HTMLElement.offsetLeft |
offsetParent | readonly | Element | MDN Reference | HTMLElement.offsetParent |
offsetTop | readonly | number | MDN Reference | HTMLElement.offsetTop |
offsetWidth | readonly | number | MDN Reference | HTMLElement.offsetWidth |
outerText | public | string | MDN Reference | HTMLElement.outerText |
popover | public | string | MDN Reference | HTMLElement.popover |
spellcheck | public | boolean | MDN Reference | HTMLElement.spellcheck |
title | public | string | MDN Reference | HTMLElement.title |
translate | public | boolean | MDN Reference | HTMLElement.translate |
autofocus | public | boolean | MDN Reference | HTMLElement.autofocus |
dataset | readonly | DOMStringMap | MDN Reference | HTMLElement.dataset |
nonce? | public | string | MDN Reference | HTMLElement.nonce |
tabIndex | public | number | MDN Reference | HTMLElement.tabIndex |
baseURI | readonly | string | Returns node’s node document’s document base URL. MDN Reference | HTMLElement.baseURI |
childNodes | readonly | NodeListOf<ChildNode> | Returns the children. MDN Reference | HTMLElement.childNodes |
firstChild | readonly | ChildNode | Returns the first child. MDN Reference | HTMLElement.firstChild |
isConnected | readonly | boolean | Returns true if node is connected and false otherwise. MDN Reference | HTMLElement.isConnected |
lastChild | readonly | ChildNode | Returns the last child. MDN Reference | HTMLElement.lastChild |
nextSibling | readonly | ChildNode | Returns the next sibling. MDN Reference | HTMLElement.nextSibling |
nodeName | readonly | string | Returns a string appropriate for the type of node. MDN Reference | HTMLElement.nodeName |
nodeType | readonly | number | Returns the type of node. MDN Reference | HTMLElement.nodeType |
nodeValue | public | string | MDN Reference | HTMLElement.nodeValue |
parentElement | readonly | HTMLElement | Returns the parent element. MDN Reference | HTMLElement.parentElement |
parentNode | readonly | ParentNode | Returns the parent. MDN Reference | HTMLElement.parentNode |
previousSibling | readonly | ChildNode | Returns the previous sibling. MDN Reference | HTMLElement.previousSibling |
textContent | public | string | MDN Reference | HTMLElement.textContent |
ELEMENT_NODE | readonly | 1 | node is an element. | HTMLElement.ELEMENT_NODE |
ATTRIBUTE_NODE | readonly | 2 | - | HTMLElement.ATTRIBUTE_NODE |
TEXT_NODE | readonly | 3 | node is a Text node. | HTMLElement.TEXT_NODE |
CDATA_SECTION_NODE | readonly | 4 | node is a CDATASection node. | HTMLElement.CDATA_SECTION_NODE |
ENTITY_REFERENCE_NODE | readonly | 5 | - | HTMLElement.ENTITY_REFERENCE_NODE |
ENTITY_NODE | readonly | 6 | - | HTMLElement.ENTITY_NODE |
PROCESSING_INSTRUCTION_NODE | readonly | 7 | node is a ProcessingInstruction node. | HTMLElement.PROCESSING_INSTRUCTION_NODE |
COMMENT_NODE | readonly | 8 | node is a Comment node. | HTMLElement.COMMENT_NODE |
DOCUMENT_NODE | readonly | 9 | node is a document. | HTMLElement.DOCUMENT_NODE |
DOCUMENT_TYPE_NODE | readonly | 10 | node is a doctype. | HTMLElement.DOCUMENT_TYPE_NODE |
DOCUMENT_FRAGMENT_NODE | readonly | 11 | node is a DocumentFragment node. | HTMLElement.DOCUMENT_FRAGMENT_NODE |
NOTATION_NODE | readonly | 12 | - | HTMLElement.NOTATION_NODE |
DOCUMENT_POSITION_DISCONNECTED | readonly | 1 | Set when node and other are not in the same tree. | HTMLElement.DOCUMENT_POSITION_DISCONNECTED |
DOCUMENT_POSITION_PRECEDING | readonly | 2 | Set when other is preceding node. | HTMLElement.DOCUMENT_POSITION_PRECEDING |
DOCUMENT_POSITION_FOLLOWING | readonly | 4 | Set when other is following node. | HTMLElement.DOCUMENT_POSITION_FOLLOWING |
DOCUMENT_POSITION_CONTAINS | readonly | 8 | Set when other is an ancestor of node. | HTMLElement.DOCUMENT_POSITION_CONTAINS |
DOCUMENT_POSITION_CONTAINED_BY | readonly | 16 | Set when other is a descendant of node. | HTMLElement.DOCUMENT_POSITION_CONTAINED_BY |
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | readonly | 32 | - | HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
nextElementSibling | readonly | Element | Returns the first following sibling that is an element, and null otherwise. MDN Reference | HTMLElement.nextElementSibling |
previousElementSibling | readonly | Element | Returns the first preceding sibling that is an element, and null otherwise. MDN Reference | HTMLElement.previousElementSibling |
childElementCount | readonly | number | MDN Reference | HTMLElement.childElementCount |
children | readonly | HTMLCollection | Returns the child elements. MDN Reference | HTMLElement.children |
firstElementChild | readonly | Element | Returns the first child that is an element, and null otherwise. MDN Reference | HTMLElement.firstElementChild |
lastElementChild | readonly | Element | Returns the last child that is an element, and null otherwise. MDN Reference | HTMLElement.lastElementChild |
assignedSlot | readonly | HTMLSlotElement | MDN Reference | HTMLElement.assignedSlot |