Skip to content

@ralphschuler.webgl shader factory.<internal>.Element

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: Element

@ralphschuler/webgl-shader-factory.<internal>.Element

Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.

MDN Reference

Hierarchy

Table of contents

Properties

Methods

Properties

ATTRIBUTE_NODE

Readonly ATTRIBUTE_NODE: 2

Inherited from

ParentNode.ATTRIBUTE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16205


CDATA_SECTION_NODE

Readonly CDATA_SECTION_NODE: 4

node is a CDATASection node.

Inherited from

ParentNode.CDATA_SECTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16209


COMMENT_NODE

Readonly COMMENT_NODE: 8

node is a Comment node.

Inherited from

ParentNode.COMMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16215


DOCUMENT_FRAGMENT_NODE

Readonly DOCUMENT_FRAGMENT_NODE: 11

node is a DocumentFragment node.

Inherited from

ParentNode.DOCUMENT_FRAGMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16221


DOCUMENT_NODE

Readonly DOCUMENT_NODE: 9

node is a document.

Inherited from

ParentNode.DOCUMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16217


DOCUMENT_POSITION_CONTAINED_BY

Readonly DOCUMENT_POSITION_CONTAINED_BY: 16

Set when other is a descendant of node.

Inherited from

ParentNode.DOCUMENT_POSITION_CONTAINED_BY

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16232


DOCUMENT_POSITION_CONTAINS

Readonly DOCUMENT_POSITION_CONTAINS: 8

Set when other is an ancestor of node.

Inherited from

ParentNode.DOCUMENT_POSITION_CONTAINS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16230


DOCUMENT_POSITION_DISCONNECTED

Readonly DOCUMENT_POSITION_DISCONNECTED: 1

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

Inherited from

ParentNode.DOCUMENT_POSITION_DISCONNECTED

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16224


DOCUMENT_POSITION_FOLLOWING

Readonly DOCUMENT_POSITION_FOLLOWING: 4

Set when other is following node.

Inherited from

ParentNode.DOCUMENT_POSITION_FOLLOWING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16228


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

Inherited from

ParentNode.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16233


DOCUMENT_POSITION_PRECEDING

Readonly DOCUMENT_POSITION_PRECEDING: 2

Set when other is preceding node.

Inherited from

ParentNode.DOCUMENT_POSITION_PRECEDING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16226


DOCUMENT_TYPE_NODE

Readonly DOCUMENT_TYPE_NODE: 10

node is a doctype.

Inherited from

ParentNode.DOCUMENT_TYPE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16219


ELEMENT_NODE

Readonly ELEMENT_NODE: 1

node is an element.

Inherited from

ParentNode.ELEMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16204


ENTITY_NODE

Readonly ENTITY_NODE: 6

Inherited from

ParentNode.ENTITY_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16211


ENTITY_REFERENCE_NODE

Readonly ENTITY_REFERENCE_NODE: 5

Inherited from

ParentNode.ENTITY_REFERENCE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16210


NOTATION_NODE

Readonly NOTATION_NODE: 12

Inherited from

ParentNode.NOTATION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16222


PROCESSING_INSTRUCTION_NODE

Readonly PROCESSING_INSTRUCTION_NODE: 7

node is a ProcessingInstruction node.

Inherited from

ParentNode.PROCESSING_INSTRUCTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16213


TEXT_NODE

Readonly TEXT_NODE: 3

node is a Text node.

Inherited from

ParentNode.TEXT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16207


ariaAtomic

ariaAtomic: null | string

MDN Reference

Inherited from

ARIAMixin.ariaAtomic

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2209


ariaAutoComplete

ariaAutoComplete: null | string

MDN Reference

Inherited from

ARIAMixin.ariaAutoComplete

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2211


ariaBusy

ariaBusy: null | string

MDN Reference

Inherited from

ARIAMixin.ariaBusy

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2213


ariaChecked

ariaChecked: null | string

MDN Reference

Inherited from

ARIAMixin.ariaChecked

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2215


ariaColCount

ariaColCount: null | string

MDN Reference

Inherited from

ARIAMixin.ariaColCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2217


ariaColIndex

ariaColIndex: null | string

MDN Reference

Inherited from

ARIAMixin.ariaColIndex

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2219


ariaColSpan

ariaColSpan: null | string

MDN Reference

Inherited from

ARIAMixin.ariaColSpan

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2221


ariaCurrent

ariaCurrent: null | string

MDN Reference

Inherited from

ARIAMixin.ariaCurrent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2223


ariaDisabled

ariaDisabled: null | string

MDN Reference

Inherited from

ARIAMixin.ariaDisabled

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2225


ariaExpanded

ariaExpanded: null | string

MDN Reference

Inherited from

ARIAMixin.ariaExpanded

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2227


ariaHasPopup

ariaHasPopup: null | string

MDN Reference

Inherited from

ARIAMixin.ariaHasPopup

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2229


ariaHidden

ariaHidden: null | string

MDN Reference

Inherited from

ARIAMixin.ariaHidden

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2231


ariaInvalid

ariaInvalid: null | string

Inherited from

ARIAMixin.ariaInvalid

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2232


ariaKeyShortcuts

ariaKeyShortcuts: null | string

MDN Reference

Inherited from

ARIAMixin.ariaKeyShortcuts

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2234


ariaLabel

ariaLabel: null | string

MDN Reference

Inherited from

ARIAMixin.ariaLabel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2236


ariaLevel

ariaLevel: null | string

MDN Reference

Inherited from

ARIAMixin.ariaLevel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2238


ariaLive

ariaLive: null | string

MDN Reference

Inherited from

ARIAMixin.ariaLive

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2240


ariaModal

ariaModal: null | string

MDN Reference

Inherited from

ARIAMixin.ariaModal

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2242


ariaMultiLine

ariaMultiLine: null | string

MDN Reference

Inherited from

ARIAMixin.ariaMultiLine

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2244


ariaMultiSelectable

ariaMultiSelectable: null | string

MDN Reference

Inherited from

ARIAMixin.ariaMultiSelectable

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2246


ariaOrientation

ariaOrientation: null | string

MDN Reference

Inherited from

ARIAMixin.ariaOrientation

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2248


ariaPlaceholder

ariaPlaceholder: null | string

MDN Reference

Inherited from

ARIAMixin.ariaPlaceholder

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2250


ariaPosInSet

ariaPosInSet: null | string

MDN Reference

Inherited from

ARIAMixin.ariaPosInSet

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2252


ariaPressed

ariaPressed: null | string

MDN Reference

Inherited from

ARIAMixin.ariaPressed

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2254


ariaReadOnly

ariaReadOnly: null | string

MDN Reference

Inherited from

ARIAMixin.ariaReadOnly

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2256


ariaRequired

ariaRequired: null | string

MDN Reference

Inherited from

ARIAMixin.ariaRequired

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2258


ariaRoleDescription

ariaRoleDescription: null | string

MDN Reference

Inherited from

ARIAMixin.ariaRoleDescription

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2260


ariaRowCount

ariaRowCount: null | string

MDN Reference

Inherited from

ARIAMixin.ariaRowCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2262


ariaRowIndex

ariaRowIndex: null | string

MDN Reference

Inherited from

ARIAMixin.ariaRowIndex

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2264


ariaRowSpan

ariaRowSpan: null | string

MDN Reference

Inherited from

ARIAMixin.ariaRowSpan

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2266


ariaSelected

ariaSelected: null | string

MDN Reference

Inherited from

ARIAMixin.ariaSelected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2268


ariaSetSize

ariaSetSize: null | string

MDN Reference

Inherited from

ARIAMixin.ariaSetSize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2270


ariaSort

ariaSort: null | string

MDN Reference

Inherited from

ARIAMixin.ariaSort

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2272


ariaValueMax

ariaValueMax: null | string

MDN Reference

Inherited from

ARIAMixin.ariaValueMax

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2274


ariaValueMin

ariaValueMin: null | string

MDN Reference

Inherited from

ARIAMixin.ariaValueMin

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2276


ariaValueNow

ariaValueNow: null | string

MDN Reference

Inherited from

ARIAMixin.ariaValueNow

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2278


ariaValueText

ariaValueText: null | string

MDN Reference

Inherited from

ARIAMixin.ariaValueText

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2280


assignedSlot

Readonly assignedSlot: null | HTMLSlotElement

MDN Reference

Inherited from

Slottable.assignedSlot

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21296


attributes

Readonly attributes: NamedNodeMap

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7600


baseURI

Readonly baseURI: string

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

MDN Reference

Inherited from

ParentNode.baseURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16074


childElementCount

Readonly childElementCount: number

MDN Reference

Inherited from

ParentNode.childElementCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16763


childNodes

Readonly childNodes: NodeListOf<ChildNode>

Returns the children.

MDN Reference

Inherited from

ParentNode.childNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16080


children

Readonly children: HTMLCollection

Returns the child elements.

MDN Reference

Inherited from

ParentNode.children

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16769


classList

Readonly classList: DOMTokenList

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7606


className

className: string

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7612


clientHeight

Readonly clientHeight: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7614


clientLeft

Readonly clientLeft: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7616


clientTop

Readonly clientTop: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7618


clientWidth

Readonly clientWidth: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7620


firstChild

Readonly firstChild: null | ChildNode

Returns the first child.

MDN Reference

Inherited from

ParentNode.firstChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16086


firstElementChild

Readonly firstElementChild: null | Element

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

MDN Reference

Inherited from

ParentNode.firstElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16775


id

id: string

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7626


innerHTML

innerHTML: string

MDN Reference

Inherited from

InnerHTML.innerHTML

Defined in

node_modules/typescript/lib/lib.dom.d.ts:14279


isConnected

Readonly isConnected: boolean

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from

ParentNode.isConnected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16092


lastChild

Readonly lastChild: null | ChildNode

Returns the last child.

MDN Reference

Inherited from

ParentNode.lastChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16098


lastElementChild

Readonly lastElementChild: null | Element

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

MDN Reference

Inherited from

ParentNode.lastElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16781


localName

Readonly localName: string

Returns the local name.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7632


namespaceURI

Readonly namespaceURI: null | string

Returns the namespace.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7638


nextElementSibling

Readonly nextElementSibling: null | Element

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

MDN Reference

Inherited from

NonDocumentTypeChildNode.nextElementSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16354


nextSibling

Readonly nextSibling: null | ChildNode

Returns the next sibling.

MDN Reference

Inherited from

ParentNode.nextSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16104


nodeName

Readonly nodeName: string

Returns a string appropriate for the type of node.

MDN Reference

Inherited from

ParentNode.nodeName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16110


nodeType

Readonly nodeType: number

Returns the type of node.

MDN Reference

Inherited from

ParentNode.nodeType

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16116


nodeValue

nodeValue: null | string

MDN Reference

Inherited from

ParentNode.nodeValue

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16118


onfullscreenchange

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7640


onfullscreenerror

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7642


outerHTML

outerHTML: string

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7644


ownerDocument

Readonly ownerDocument: Document

Returns the node document. Returns null for documents.

MDN Reference

Overrides

ParentNode.ownerDocument

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7645


parentElement

Readonly parentElement: null | HTMLElement

Returns the parent element.

MDN Reference

Inherited from

ParentNode.parentElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16130


parentNode

Readonly parentNode: null | ParentNode

Returns the parent.

MDN Reference

Inherited from

ParentNode.parentNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16136


part

Readonly part: DOMTokenList

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7647


prefix

Readonly prefix: null | string

Returns the namespace prefix.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7653


previousElementSibling

Readonly previousElementSibling: null | Element

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

MDN Reference

Inherited from

NonDocumentTypeChildNode.previousElementSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16360


previousSibling

Readonly previousSibling: null | ChildNode

Returns the previous sibling.

MDN Reference

Inherited from

ParentNode.previousSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16142


role

role: null | string

Inherited from

ARIAMixin.role

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2281


scrollHeight

Readonly scrollHeight: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7655


scrollLeft

scrollLeft: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7657


scrollTop

scrollTop: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7659


scrollWidth

Readonly scrollWidth: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7661


shadowRoot

Readonly shadowRoot: null | ShadowRoot

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7667


slot

slot: string

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

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7673


tagName

Readonly tagName: string

Returns the HTML-uppercased qualified name.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7679


textContent

textContent: null | string

MDN Reference

Inherited from

ParentNode.textContent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16144

Methods

addEventListener

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

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

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

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

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

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

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

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

MDN Reference

Type parameters

Name Type
K extends keyof ElementEventMap

Parameters

Name Type
type K
listener (this: Element, ev: ElementEventMap[K]) => any
options? boolean | AddEventListenerOptions

Returns

void

Overrides

ParentNode.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7843

addEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions

Returns

void

Overrides

Node.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7844


after

after(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ChildNode.after

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5599


animate

animate(keyframes, options?): Animation

MDN Reference

Parameters

Name Type
keyframes null | PropertyIndexedKeyframes | Keyframe[]
options? number | KeyframeAnimationOptions

Returns

Animation

Inherited from

Animatable.animate

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2431


append

append(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.append

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16789


appendChild

appendChild<T>(node): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T

Returns

T

Inherited from

ParentNode.appendChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16146


attachShadow

attachShadow(init): ShadowRoot

Creates a shadow root for element and returns it.

MDN Reference

Parameters

Name Type
init ShadowRootInit

Returns

ShadowRoot

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7685


before

before(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ChildNode.before

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5607


checkVisibility

checkVisibility(options?): boolean

Parameters

Name Type
options? CheckVisibilityOptions

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7686


cloneNode

cloneNode(deep?): Node

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

MDN Reference

Parameters

Name Type
deep? boolean

Returns

Node

Inherited from

ParentNode.cloneNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16152


closest

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

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

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selector K

Returns

null | HTMLElementTagNameMap[K]

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7692

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

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selector K

Returns

null | SVGElementTagNameMap[K]

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7693

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

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selector K

Returns

null | MathMLElementTagNameMap[K]

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7694

closest<E>(selectors): null | E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

null | E

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7695


compareDocumentPosition

compareDocumentPosition(other): number

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

MDN Reference

Parameters

Name Type
other Node

Returns

number

Inherited from

ParentNode.compareDocumentPosition

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16158


computedStyleMap

computedStyleMap(): StylePropertyMapReadOnly

MDN Reference

Returns

StylePropertyMapReadOnly

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7697


contains

contains(other): boolean

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

MDN Reference

Parameters

Name Type
other null | Node

Returns

boolean

Inherited from

ParentNode.contains

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16164


dispatchEvent

dispatchEvent(event): boolean

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

MDN Reference

Parameters

Name Type
event Event

Returns

boolean

Inherited from

ParentNode.dispatchEvent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8217


getAnimations

getAnimations(options?): Animation[]

MDN Reference

Parameters

Name Type
options? GetAnimationsOptions

Returns

Animation[]

Inherited from

Animatable.getAnimations

Defined in

node_modules/typescript/lib/lib.dom.d.ts:2433


getAttribute

getAttribute(qualifiedName): null | string

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

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

null | string

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7703


getAttributeNS

getAttributeNS(namespace, localName): null | string

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

MDN Reference

Parameters

Name Type
namespace null | string
localName string

Returns

null | string

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7709


getAttributeNames

getAttributeNames(): string[]

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

MDN Reference

Returns

string[]

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7715


getAttributeNode

getAttributeNode(qualifiedName): null | Attr

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

null | Attr

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7717


getAttributeNodeNS

getAttributeNodeNS(namespace, localName): null | Attr

MDN Reference

Parameters

Name Type
namespace null | string
localName string

Returns

null | Attr

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7719


getBoundingClientRect

getBoundingClientRect(): DOMRect

MDN Reference

Returns

DOMRect

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7721


getClientRects

getClientRects(): DOMRectList

MDN Reference

Returns

DOMRectList

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7723


getElementsByClassName

getElementsByClassName(classNames): HTMLCollectionOf<Element>

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

MDN Reference

Parameters

Name Type
classNames string

Returns

HTMLCollectionOf<Element>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7729


getElementsByTagName

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

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf<HTMLElementTagNameMap[K]>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7731

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

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf<SVGElementTagNameMap[K]>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7732

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

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf<MathMLElementTagNameMap[K]>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7733

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

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7735

getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>

Parameters

Name Type
qualifiedName string

Returns

HTMLCollectionOf<Element>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7736


getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>

MDN Reference

Parameters

Name Type
namespaceURI "http://www.w3.org/1999/xhtml"
localName string

Returns

HTMLCollectionOf<HTMLElement>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7738

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>

Parameters

Name Type
namespaceURI "http://www.w3.org/2000/svg"
localName string

Returns

HTMLCollectionOf<SVGElement>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7739

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>

Parameters

Name Type
namespaceURI "http://www.w3.org/1998/Math/MathML"
localName string

Returns

HTMLCollectionOf<MathMLElement>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7740

getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>

Parameters

Name Type
namespace null | string
localName string

Returns

HTMLCollectionOf<Element>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7741


getRootNode

getRootNode(options?): Node

Returns node's root.

MDN Reference

Parameters

Name Type
options? GetRootNodeOptions

Returns

Node

Inherited from

ParentNode.getRootNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16170


hasAttribute

hasAttribute(qualifiedName): boolean

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

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7747


hasAttributeNS

hasAttributeNS(namespace, localName): boolean

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

MDN Reference

Parameters

Name Type
namespace null | string
localName string

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7753


hasAttributes

hasAttributes(): boolean

Returns true if element has attributes, and false otherwise.

MDN Reference

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7759


hasChildNodes

hasChildNodes(): boolean

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from

ParentNode.hasChildNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16176


hasPointerCapture

hasPointerCapture(pointerId): boolean

MDN Reference

Parameters

Name Type
pointerId number

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7761


insertAdjacentElement

insertAdjacentElement(where, element): null | Element

MDN Reference

Parameters

Name Type
where InsertPosition
element Element

Returns

null | Element

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7763


insertAdjacentHTML

insertAdjacentHTML(position, text): void

MDN Reference

Parameters

Name Type
position InsertPosition
text string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7765


insertAdjacentText

insertAdjacentText(where, data): void

MDN Reference

Parameters

Name Type
where InsertPosition
data string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7767


insertBefore

insertBefore<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T
child null | Node

Returns

T

Inherited from

ParentNode.insertBefore

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16178


isDefaultNamespace

isDefaultNamespace(namespace): boolean

MDN Reference

Parameters

Name Type
namespace null | string

Returns

boolean

Inherited from

ParentNode.isDefaultNamespace

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16180


isEqualNode

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

ParentNode.isEqualNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16186


isSameNode

isSameNode(otherNode): boolean

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

ParentNode.isSameNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16188


lookupNamespaceURI

lookupNamespaceURI(prefix): null | string

MDN Reference

Parameters

Name Type
prefix null | string

Returns

null | string

Inherited from

ParentNode.lookupNamespaceURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16190


lookupPrefix

lookupPrefix(namespace): null | string

MDN Reference

Parameters

Name Type
namespace null | string

Returns

null | string

Inherited from

ParentNode.lookupPrefix

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16192


matches

matches(selectors): boolean

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

MDN Reference

Parameters

Name Type
selectors string

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7773


normalize

normalize(): void

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

MDN Reference

Returns

void

Inherited from

ParentNode.normalize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16198


prepend

prepend(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.prepend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16797


querySelector

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

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

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16803

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

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | SVGElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16804

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

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | MathMLElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16805

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

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementDeprecatedTagNameMap[K]

Deprecated

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16807

querySelector<E>(selectors): null | E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

null | E

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16808


querySelectorAll

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

Returns all element descendants of node that match selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16814

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

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16815

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

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16816

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

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16818

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

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

NodeListOf<E>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16819


releasePointerCapture

releasePointerCapture(pointerId): void

MDN Reference

Parameters

Name Type
pointerId number

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7775


remove

remove(): void

Removes node.

MDN Reference

Returns

void

Inherited from

ChildNode.remove

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5613


removeAttribute

removeAttribute(qualifiedName): void

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

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7781


removeAttributeNS

removeAttributeNS(namespace, localName): void

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

MDN Reference

Parameters

Name Type
namespace null | string
localName string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7787


removeAttributeNode

removeAttributeNode(attr): Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

Attr

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7789


removeChild

removeChild<T>(child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
child T

Returns

T

Inherited from

ParentNode.removeChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16200


removeEventListener

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

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

MDN Reference

Type parameters

Name Type
K extends keyof ElementEventMap

Parameters

Name Type
type K
listener (this: Element, ev: ElementEventMap[K]) => any
options? boolean | EventListenerOptions

Returns

void

Overrides

ParentNode.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7845

removeEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | EventListenerOptions

Returns

void

Overrides

Node.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7846


replaceChild

replaceChild<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node Node
child T

Returns

T

Inherited from

ParentNode.replaceChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16202


replaceChildren

replaceChildren(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.replaceChildren

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16827


replaceWith

replaceWith(...nodes): void

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

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

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ChildNode.replaceWith

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5621


requestFullscreen

requestFullscreen(options?): Promise<void>

Displays element fullscreen and resolves promise when done.

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

MDN Reference

Parameters

Name Type
options? FullscreenOptions

Returns

Promise<void>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7797


requestPointerLock

requestPointerLock(): void

MDN Reference

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7799


scroll

scroll(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7801

scroll(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7802


scrollBy

scrollBy(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7804

scrollBy(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7805


scrollIntoView

scrollIntoView(arg?): void

MDN Reference

Parameters

Name Type
arg? boolean | ScrollIntoViewOptions

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7807


scrollTo

scrollTo(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7809

scrollTo(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7810


setAttribute

setAttribute(qualifiedName, value): void

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

MDN Reference

Parameters

Name Type
qualifiedName string
value string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7816


setAttributeNS

setAttributeNS(namespace, qualifiedName, value): void

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

MDN Reference

Parameters

Name Type
namespace null | string
qualifiedName string
value string

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7822


setAttributeNode

setAttributeNode(attr): null | Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

null | Attr

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7824


setAttributeNodeNS

setAttributeNodeNS(attr): null | Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

null | Attr

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7826


setPointerCapture

setPointerCapture(pointerId): void

MDN Reference

Parameters

Name Type
pointerId number

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7828


toggleAttribute

toggleAttribute(qualifiedName, force?): boolean

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

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

MDN Reference

Parameters

Name Type
qualifiedName string
force? boolean

Returns

boolean

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7836


webkitMatchesSelector

webkitMatchesSelector(selectors): boolean

Parameters

Name Type
selectors string

Returns

boolean

Deprecated

This is a legacy alias of matches.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7842

Typescript Libraries

Modules

Namespaces

Clone this wiki locally