SfnDiagramElement
Defined in: src/element/SfnDiagramElement.ts:77
<sfn-diagram> — a framework-agnostic custom element rendering an AWS Step
Functions ASL definition as an SVG or Mermaid diagram, with an optional
interactive viewer (pan/zoom, search, minimap, and a detail panel for a clicked
state or edge).
Renders in light DOM (no shadow root), so page CSS reaches the SVG and the
element degrades to plain server-rendered markup: give it a pre-rendered
<svg> child (from generateSvg() run at build/server time) and omit
definition entirely for a zero-client-JS diagram; setting interactive
on top still upgrades that markup with pan/zoom/search.
Register it with defineSfnDiagram (imported from sfn-diagram/element),
or import sfn-diagram/element/auto for its zero-config <sfn-diagram> side effect.
Examples
Section titled “Examples”<script type="module" src="sfn-diagram/element/auto"></script><sfn-diagram interactive theme="dark"></sfn-diagram><script type="module"> document.querySelector('sfn-diagram').definition = myAslDefinition;</script>import { SfnDiagramElement } from 'sfn-diagram/element';customElements.define('sfn-diagram', SfnDiagramElement);Custom Element
Section titled “Custom Element”sfn-diagram
sfn-error - CustomEvent<Error>, bubbles and composes across shadow
boundaries. Dispatched when definition fails to parse or fails ASL
validation; the element renders nothing when this fires.
Extends
Section titled “Extends”HTMLElement
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SfnDiagramElement(): SfnDiagramElement;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13847
Returns
Section titled “Returns”SfnDiagramElement
Inherited from
Section titled “Inherited from”HTMLElement.constructorProperties
Section titled “Properties”accessKey
Section titled “accessKey”accessKey: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13688
The HTMLElement.accessKey property sets the keystroke which a user can press to jump to a given element.
Inherited from
Section titled “Inherited from”HTMLElement.accessKeyaccessKeyLabel
Section titled “accessKeyLabel”readonly accessKeyLabel: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13694
The HTMLElement.accessKeyLabel read-only property returns a string containing the element’s browser-assigned access key (if any); otherwise it returns an empty string.
Inherited from
Section titled “Inherited from”HTMLElement.accessKeyLabelariaActiveDescendantElement
Section titled “ariaActiveDescendantElement”ariaActiveDescendantElement: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2607
Inherited from
Section titled “Inherited from”HTMLElement.ariaActiveDescendantElementariaAtomic
Section titled “ariaAtomic”ariaAtomic: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2609
Inherited from
Section titled “Inherited from”HTMLElement.ariaAtomicariaAutoComplete
Section titled “ariaAutoComplete”ariaAutoComplete: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2611
Inherited from
Section titled “Inherited from”HTMLElement.ariaAutoCompleteariaBrailleLabel
Section titled “ariaBrailleLabel”ariaBrailleLabel: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2613
Inherited from
Section titled “Inherited from”HTMLElement.ariaBrailleLabelariaBrailleRoleDescription
Section titled “ariaBrailleRoleDescription”ariaBrailleRoleDescription: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2615
Inherited from
Section titled “Inherited from”HTMLElement.ariaBrailleRoleDescriptionariaBusy
Section titled “ariaBusy”ariaBusy: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2617
Inherited from
Section titled “Inherited from”HTMLElement.ariaBusyariaChecked
Section titled “ariaChecked”ariaChecked: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2619
Inherited from
Section titled “Inherited from”HTMLElement.ariaCheckedariaColCount
Section titled “ariaColCount”ariaColCount: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2621
Inherited from
Section titled “Inherited from”HTMLElement.ariaColCountariaColIndex
Section titled “ariaColIndex”ariaColIndex: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2623
Inherited from
Section titled “Inherited from”HTMLElement.ariaColIndexariaColIndexText
Section titled “ariaColIndexText”ariaColIndexText: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2625
Inherited from
Section titled “Inherited from”HTMLElement.ariaColIndexTextariaColSpan
Section titled “ariaColSpan”ariaColSpan: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2627
Inherited from
Section titled “Inherited from”HTMLElement.ariaColSpanariaControlsElements
Section titled “ariaControlsElements”ariaControlsElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2629
Inherited from
Section titled “Inherited from”HTMLElement.ariaControlsElementsariaCurrent
Section titled “ariaCurrent”ariaCurrent: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2631
Inherited from
Section titled “Inherited from”HTMLElement.ariaCurrentariaDescribedByElements
Section titled “ariaDescribedByElements”ariaDescribedByElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2633
Inherited from
Section titled “Inherited from”HTMLElement.ariaDescribedByElementsariaDescription
Section titled “ariaDescription”ariaDescription: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2635
Inherited from
Section titled “Inherited from”HTMLElement.ariaDescriptionariaDetailsElements
Section titled “ariaDetailsElements”ariaDetailsElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2637
Inherited from
Section titled “Inherited from”HTMLElement.ariaDetailsElementsariaDisabled
Section titled “ariaDisabled”ariaDisabled: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2639
Inherited from
Section titled “Inherited from”HTMLElement.ariaDisabledariaErrorMessageElements
Section titled “ariaErrorMessageElements”ariaErrorMessageElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2641
Inherited from
Section titled “Inherited from”HTMLElement.ariaErrorMessageElementsariaExpanded
Section titled “ariaExpanded”ariaExpanded: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2643
Inherited from
Section titled “Inherited from”HTMLElement.ariaExpandedariaFlowToElements
Section titled “ariaFlowToElements”ariaFlowToElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2645
Inherited from
Section titled “Inherited from”HTMLElement.ariaFlowToElementsariaHasPopup
Section titled “ariaHasPopup”ariaHasPopup: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2647
Inherited from
Section titled “Inherited from”HTMLElement.ariaHasPopupariaHidden
Section titled “ariaHidden”ariaHidden: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2649
Inherited from
Section titled “Inherited from”HTMLElement.ariaHiddenariaInvalid
Section titled “ariaInvalid”ariaInvalid: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2651
Inherited from
Section titled “Inherited from”HTMLElement.ariaInvalidariaKeyShortcuts
Section titled “ariaKeyShortcuts”ariaKeyShortcuts: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2653
Inherited from
Section titled “Inherited from”HTMLElement.ariaKeyShortcutsariaLabel
Section titled “ariaLabel”ariaLabel: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2655
Inherited from
Section titled “Inherited from”HTMLElement.ariaLabelariaLabelledByElements
Section titled “ariaLabelledByElements”ariaLabelledByElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2657
Inherited from
Section titled “Inherited from”HTMLElement.ariaLabelledByElementsariaLevel
Section titled “ariaLevel”ariaLevel: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2659
Inherited from
Section titled “Inherited from”HTMLElement.ariaLevelariaLive
Section titled “ariaLive”ariaLive: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2661
Inherited from
Section titled “Inherited from”HTMLElement.ariaLiveariaModal
Section titled “ariaModal”ariaModal: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2663
Inherited from
Section titled “Inherited from”HTMLElement.ariaModalariaMultiLine
Section titled “ariaMultiLine”ariaMultiLine: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2665
Inherited from
Section titled “Inherited from”HTMLElement.ariaMultiLineariaMultiSelectable
Section titled “ariaMultiSelectable”ariaMultiSelectable: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2667
Inherited from
Section titled “Inherited from”HTMLElement.ariaMultiSelectableariaOrientation
Section titled “ariaOrientation”ariaOrientation: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2669
Inherited from
Section titled “Inherited from”HTMLElement.ariaOrientationariaOwnsElements
Section titled “ariaOwnsElements”ariaOwnsElements: readonly Element[] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2671
Inherited from
Section titled “Inherited from”HTMLElement.ariaOwnsElementsariaPlaceholder
Section titled “ariaPlaceholder”ariaPlaceholder: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2673
Inherited from
Section titled “Inherited from”HTMLElement.ariaPlaceholderariaPosInSet
Section titled “ariaPosInSet”ariaPosInSet: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2675
Inherited from
Section titled “Inherited from”HTMLElement.ariaPosInSetariaPressed
Section titled “ariaPressed”ariaPressed: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2677
Inherited from
Section titled “Inherited from”HTMLElement.ariaPressedariaReadOnly
Section titled “ariaReadOnly”ariaReadOnly: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2679
Inherited from
Section titled “Inherited from”HTMLElement.ariaReadOnlyariaRelevant
Section titled “ariaRelevant”ariaRelevant: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2681
Inherited from
Section titled “Inherited from”HTMLElement.ariaRelevantariaRequired
Section titled “ariaRequired”ariaRequired: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2683
Inherited from
Section titled “Inherited from”HTMLElement.ariaRequiredariaRoleDescription
Section titled “ariaRoleDescription”ariaRoleDescription: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2685
Inherited from
Section titled “Inherited from”HTMLElement.ariaRoleDescriptionariaRowCount
Section titled “ariaRowCount”ariaRowCount: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2687
Inherited from
Section titled “Inherited from”HTMLElement.ariaRowCountariaRowIndex
Section titled “ariaRowIndex”ariaRowIndex: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2689
Inherited from
Section titled “Inherited from”HTMLElement.ariaRowIndexariaRowIndexText
Section titled “ariaRowIndexText”ariaRowIndexText: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2691
Inherited from
Section titled “Inherited from”HTMLElement.ariaRowIndexTextariaRowSpan
Section titled “ariaRowSpan”ariaRowSpan: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2693
Inherited from
Section titled “Inherited from”HTMLElement.ariaRowSpanariaSelected
Section titled “ariaSelected”ariaSelected: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2695
Inherited from
Section titled “Inherited from”HTMLElement.ariaSelectedariaSetSize
Section titled “ariaSetSize”ariaSetSize: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2697
Inherited from
Section titled “Inherited from”HTMLElement.ariaSetSizeariaSort
Section titled “ariaSort”ariaSort: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2699
Inherited from
Section titled “Inherited from”HTMLElement.ariaSortariaValueMax
Section titled “ariaValueMax”ariaValueMax: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2701
Inherited from
Section titled “Inherited from”HTMLElement.ariaValueMaxariaValueMin
Section titled “ariaValueMin”ariaValueMin: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2703
Inherited from
Section titled “Inherited from”HTMLElement.ariaValueMinariaValueNow
Section titled “ariaValueNow”ariaValueNow: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2705
Inherited from
Section titled “Inherited from”HTMLElement.ariaValueNowariaValueText
Section titled “ariaValueText”ariaValueText: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2707
Inherited from
Section titled “Inherited from”HTMLElement.ariaValueTextassignedSlot
Section titled “assignedSlot”readonly assignedSlot: HTMLSlotElement | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:30826
Inherited from
Section titled “Inherited from”HTMLElement.assignedSlotATTRIBUTE_NODE
Section titled “ATTRIBUTE_NODE”readonly ATTRIBUTE_NODE: 2;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21835
Inherited from
Section titled “Inherited from”HTMLElement.ATTRIBUTE_NODEattributes
Section titled “attributes”readonly attributes: NamedNodeMap;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10707
The Element.attributes property returns a live collection of all attribute nodes registered to the specified node.
Inherited from
Section titled “Inherited from”HTMLElement.attributesattributeStyleMap
Section titled “attributeStyleMap”readonly attributeStyleMap: StylePropertyMap;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11117
Inherited from
Section titled “Inherited from”HTMLElement.attributeStyleMapautocapitalize
Section titled “autocapitalize”autocapitalize: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13700
The autocapitalize property of the HTMLElement interface represents the element’s capitalization behavior for user input.
Inherited from
Section titled “Inherited from”HTMLElement.autocapitalizeautocorrect
Section titled “autocorrect”autocorrect: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13706
The autocorrect property of the HTMLElement interface controls whether or not autocorrection of editable text is enabled for spelling and/or punctuation errors.
Inherited from
Section titled “Inherited from”HTMLElement.autocorrectautofocus
Section titled “autofocus”autofocus: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16065
Inherited from
Section titled “Inherited from”HTMLElement.autofocusbaseURI
Section titled “baseURI”readonly baseURI: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21664
The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.
Inherited from
Section titled “Inherited from”HTMLElement.baseURICDATA_SECTION_NODE
Section titled “CDATA_SECTION_NODE”readonly CDATA_SECTION_NODE: 4;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21839
node is a CDATASection node.
Inherited from
Section titled “Inherited from”HTMLElement.CDATA_SECTION_NODEchildElementCount
Section titled “childElementCount”readonly childElementCount: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22668
Inherited from
Section titled “Inherited from”HTMLElement.childElementCountchildNodes
Section titled “childNodes”readonly childNodes: NodeListOf<ChildNode>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21670
The read-only childNodes property of the Node interface returns a live the first child node is assigned index 0.
Inherited from
Section titled “Inherited from”HTMLElement.childNodeschildren
Section titled “children”readonly children: HTMLCollection;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22674
Returns the child elements.
Inherited from
Section titled “Inherited from”HTMLElement.childrenclassName
Section titled “className”className: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10720
The className property of the of the specified element.
Inherited from
Section titled “Inherited from”HTMLElement.classNameclientHeight
Section titled “clientHeight”readonly clientHeight: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10726
The clientHeight read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it’s the inner height of an element in pixels.
Inherited from
Section titled “Inherited from”HTMLElement.clientHeightclientLeft
Section titled “clientLeft”readonly clientLeft: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10732
The clientLeft read-only property of the Element interface returns the width of the left border of an element in pixels.
Inherited from
Section titled “Inherited from”HTMLElement.clientLeftclientTop
Section titled “clientTop”readonly clientTop: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10738
The clientTop read-only property of the Element interface returns the width of the top border of an element in pixels.
Inherited from
Section titled “Inherited from”HTMLElement.clientTopclientWidth
Section titled “clientWidth”readonly clientWidth: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10744
The clientWidth read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it’s the inner width of an element in pixels.
Inherited from
Section titled “Inherited from”HTMLElement.clientWidthCOMMENT_NODE
Section titled “COMMENT_NODE”readonly COMMENT_NODE: 8;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21845
node is a Comment node.
Inherited from
Section titled “Inherited from”HTMLElement.COMMENT_NODEcontentEditable
Section titled “contentEditable”contentEditable: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11125
Inherited from
Section titled “Inherited from”HTMLElement.contentEditablecurrentCSSZoom
Section titled “currentCSSZoom”readonly currentCSSZoom: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10750
The currentCSSZoom read-only property of the Element interface provides the ‘effective’ CSS zoom of an element, taking into account the zoom applied to the element and all its parent elements.
Inherited from
Section titled “Inherited from”HTMLElement.currentCSSZoomdataset
Section titled “dataset”readonly dataset: DOMStringMap;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16067
Inherited from
Section titled “Inherited from”HTMLElement.datasetdir: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13712
The HTMLElement.dir property indicates the text writing directionality of the content of the current element.
Inherited from
Section titled “Inherited from”HTMLElement.dirDOCUMENT_FRAGMENT_NODE
Section titled “DOCUMENT_FRAGMENT_NODE”readonly DOCUMENT_FRAGMENT_NODE: 11;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21851
node is a DocumentFragment node.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_FRAGMENT_NODEDOCUMENT_NODE
Section titled “DOCUMENT_NODE”readonly DOCUMENT_NODE: 9;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21847
node is a document.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_NODEDOCUMENT_POSITION_CONTAINED_BY
Section titled “DOCUMENT_POSITION_CONTAINED_BY”readonly DOCUMENT_POSITION_CONTAINED_BY: 16;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21862
Set when other is a descendant of node.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_CONTAINED_BYDOCUMENT_POSITION_CONTAINS
Section titled “DOCUMENT_POSITION_CONTAINS”readonly DOCUMENT_POSITION_CONTAINS: 8;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21860
Set when other is an ancestor of node.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_CONTAINSDOCUMENT_POSITION_DISCONNECTED
Section titled “DOCUMENT_POSITION_DISCONNECTED”readonly DOCUMENT_POSITION_DISCONNECTED: 1;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21854
Set when node and other are not in the same tree.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_DISCONNECTEDDOCUMENT_POSITION_FOLLOWING
Section titled “DOCUMENT_POSITION_FOLLOWING”readonly DOCUMENT_POSITION_FOLLOWING: 4;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21858
Set when other is following node.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_FOLLOWINGDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Section titled “DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC”readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21863
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFICDOCUMENT_POSITION_PRECEDING
Section titled “DOCUMENT_POSITION_PRECEDING”readonly DOCUMENT_POSITION_PRECEDING: 2;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21856
Set when other is preceding node.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_POSITION_PRECEDINGDOCUMENT_TYPE_NODE
Section titled “DOCUMENT_TYPE_NODE”readonly DOCUMENT_TYPE_NODE: 10;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21849
node is a doctype.
Inherited from
Section titled “Inherited from”HTMLElement.DOCUMENT_TYPE_NODEdraggable
Section titled “draggable”draggable: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13718
The draggable property of the HTMLElement interface gets and sets a Boolean primitive indicating if the element is draggable.
Inherited from
Section titled “Inherited from”HTMLElement.draggableELEMENT_NODE
Section titled “ELEMENT_NODE”readonly ELEMENT_NODE: 1;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21834
node is an element.
Inherited from
Section titled “Inherited from”HTMLElement.ELEMENT_NODEenterKeyHint
Section titled “enterKeyHint”enterKeyHint: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11127
Inherited from
Section titled “Inherited from”HTMLElement.enterKeyHintENTITY_NODE
Section titled “ENTITY_NODE”readonly ENTITY_NODE: 6;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21841
Inherited from
Section titled “Inherited from”HTMLElement.ENTITY_NODEENTITY_REFERENCE_NODE
Section titled “ENTITY_REFERENCE_NODE”readonly ENTITY_REFERENCE_NODE: 5;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21840
Inherited from
Section titled “Inherited from”HTMLElement.ENTITY_REFERENCE_NODEfirstChild
Section titled “firstChild”readonly firstChild: ChildNode | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21676
The read-only firstChild property of the Node interface returns the node’s first child in the tree, or null if the node has no children.
Inherited from
Section titled “Inherited from”HTMLElement.firstChildfirstElementChild
Section titled “firstElementChild”readonly firstElementChild: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22680
Returns the first child that is an element, and null otherwise.
Inherited from
Section titled “Inherited from”HTMLElement.firstElementChildhidden
Section titled “hidden”hidden: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13724
The HTMLElement property hidden reflects the value of the element’s hidden attribute.
Inherited from
Section titled “Inherited from”HTMLElement.hiddenid: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10756
The id property of the Element interface represents the element’s identifier, reflecting the id global attribute.
Inherited from
Section titled “Inherited from”HTMLElement.idinert: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13730
The HTMLElement property inert reflects the value of the element’s inert attribute.
Inherited from
Section titled “Inherited from”HTMLElement.inertinnerHTML
Section titled “innerHTML”innerHTML: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10762
The innerHTML property of the Element interface gets or sets the HTML or XML markup contained within the element.
Inherited from
Section titled “Inherited from”HTMLElement.innerHTMLinnerText
Section titled “innerText”innerText: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13736
The innerText property of the HTMLElement interface represents the rendered text content of a node and its descendants.
Inherited from
Section titled “Inherited from”HTMLElement.innerTextinputMode
Section titled “inputMode”inputMode: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11129
Inherited from
Section titled “Inherited from”HTMLElement.inputModeisConnected
Section titled “isConnected”readonly isConnected: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21682
The read-only isConnected property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.
Inherited from
Section titled “Inherited from”HTMLElement.isConnectedisContentEditable
Section titled “isContentEditable”readonly isContentEditable: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11131
Inherited from
Section titled “Inherited from”HTMLElement.isContentEditablelang: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13742
The lang property of the HTMLElement interface indicates the base language of an element’s attribute values and text content, in the form of a MISSING: RFC(5646, ‘BCP 47 language identifier tag’)].
Inherited from
Section titled “Inherited from”HTMLElement.langlastChild
Section titled “lastChild”readonly lastChild: ChildNode | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21688
The read-only lastChild property of the Node interface returns the last child of the node, or null if there are no child nodes.
Inherited from
Section titled “Inherited from”HTMLElement.lastChildlastElementChild
Section titled “lastElementChild”readonly lastElementChild: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22686
Returns the last child that is an element, and null otherwise.
Inherited from
Section titled “Inherited from”HTMLElement.lastElementChildlocalName
Section titled “localName”readonly localName: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10768
The Element.localName read-only property returns the local part of the qualified name of an element.
Inherited from
Section titled “Inherited from”HTMLElement.localNamenamespaceURI
Section titled “namespaceURI”readonly namespaceURI: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10774
The Element.namespaceURI read-only property returns the namespace URI of the element, or null if the element is not in a namespace.
Inherited from
Section titled “Inherited from”HTMLElement.namespaceURInextElementSibling
Section titled “nextElementSibling”readonly nextElementSibling: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22003
Returns the first following sibling that is an element, and null otherwise.
Inherited from
Section titled “Inherited from”HTMLElement.nextElementSiblingnextSibling
Section titled “nextSibling”readonly nextSibling: ChildNode | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21694
The read-only nextSibling property of the Node interface returns the node immediately following the specified one in their parent’s Node.childNodes, or returns null if the specified node is the last child in the parent element.
Inherited from
Section titled “Inherited from”HTMLElement.nextSiblingnodeName
Section titled “nodeName”readonly nodeName: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21700
The read-only nodeName property of Node returns the name of the current node as a string.
Inherited from
Section titled “Inherited from”HTMLElement.nodeNamenodeType
Section titled “nodeType”readonly nodeType: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21706
The read-only nodeType property of a Node interface is an integer that identifies what the node is.
Inherited from
Section titled “Inherited from”HTMLElement.nodeTypenodeValue
Section titled “nodeValue”nodeValue: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21712
The nodeValue property of the Node interface returns or sets the value of the current node.
Inherited from
Section titled “Inherited from”HTMLElement.nodeValuenonce?
Section titled “nonce?”optional nonce?: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16069
Inherited from
Section titled “Inherited from”HTMLElement.nonceNOTATION_NODE
Section titled “NOTATION_NODE”readonly NOTATION_NODE: 12;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21852
Inherited from
Section titled “Inherited from”HTMLElement.NOTATION_NODEoffsetHeight
Section titled “offsetHeight”readonly offsetHeight: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13748
The offsetHeight read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
Inherited from
Section titled “Inherited from”HTMLElement.offsetHeightoffsetLeft
Section titled “offsetLeft”readonly offsetLeft: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13754
The offsetLeft read-only property of the HTMLElement interface returns the number of pixels that the upper left corner of the current element is offset to the left within the HTMLElement.offsetParent node.
Inherited from
Section titled “Inherited from”HTMLElement.offsetLeftoffsetParent
Section titled “offsetParent”readonly offsetParent: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13760
The HTMLElement.offsetParent read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.
Inherited from
Section titled “Inherited from”HTMLElement.offsetParentoffsetTop
Section titled “offsetTop”readonly offsetTop: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13766
The offsetTop read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the closest positioned ancestor element.
Inherited from
Section titled “Inherited from”HTMLElement.offsetTopoffsetWidth
Section titled “offsetWidth”readonly offsetWidth: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13772
The offsetWidth read-only property of the HTMLElement interface returns the layout width of an element as an integer.
Inherited from
Section titled “Inherited from”HTMLElement.offsetWidthonabort
Section titled “onabort”onabort: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12743
Inherited from
Section titled “Inherited from”HTMLElement.onabortonanimationcancel
Section titled “onanimationcancel”onanimationcancel: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12745
Inherited from
Section titled “Inherited from”HTMLElement.onanimationcancelonanimationend
Section titled “onanimationend”onanimationend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12747
Inherited from
Section titled “Inherited from”HTMLElement.onanimationendonanimationiteration
Section titled “onanimationiteration”onanimationiteration: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12749
Inherited from
Section titled “Inherited from”HTMLElement.onanimationiterationonanimationstart
Section titled “onanimationstart”onanimationstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12751
Inherited from
Section titled “Inherited from”HTMLElement.onanimationstartonauxclick
Section titled “onauxclick”onauxclick: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12753
Inherited from
Section titled “Inherited from”HTMLElement.onauxclickonbeforeinput
Section titled “onbeforeinput”onbeforeinput: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12755
Inherited from
Section titled “Inherited from”HTMLElement.onbeforeinputonbeforematch
Section titled “onbeforematch”onbeforematch: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12757
Inherited from
Section titled “Inherited from”HTMLElement.onbeforematchonbeforetoggle
Section titled “onbeforetoggle”onbeforetoggle: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12759
Inherited from
Section titled “Inherited from”HTMLElement.onbeforetoggleonblur
Section titled “onblur”onblur: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12761
Inherited from
Section titled “Inherited from”HTMLElement.onbluroncancel
Section titled “oncancel”oncancel: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12763
Inherited from
Section titled “Inherited from”HTMLElement.oncanceloncanplay
Section titled “oncanplay”oncanplay: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12765
Inherited from
Section titled “Inherited from”HTMLElement.oncanplayoncanplaythrough
Section titled “oncanplaythrough”oncanplaythrough: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12767
Inherited from
Section titled “Inherited from”HTMLElement.oncanplaythroughonchange
Section titled “onchange”onchange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12769
Inherited from
Section titled “Inherited from”HTMLElement.onchangeonclick
Section titled “onclick”onclick: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12771
Inherited from
Section titled “Inherited from”HTMLElement.onclickonclose
Section titled “onclose”onclose: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12773
Inherited from
Section titled “Inherited from”HTMLElement.oncloseoncontextlost
Section titled “oncontextlost”oncontextlost: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12775
Inherited from
Section titled “Inherited from”HTMLElement.oncontextlostoncontextmenu
Section titled “oncontextmenu”oncontextmenu: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12777
Inherited from
Section titled “Inherited from”HTMLElement.oncontextmenuoncontextrestored
Section titled “oncontextrestored”oncontextrestored: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12779
Inherited from
Section titled “Inherited from”HTMLElement.oncontextrestoredoncopy
Section titled “oncopy”oncopy: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12781
Inherited from
Section titled “Inherited from”HTMLElement.oncopyoncuechange
Section titled “oncuechange”oncuechange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12783
Inherited from
Section titled “Inherited from”HTMLElement.oncuechangeoncut: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12785
Inherited from
Section titled “Inherited from”HTMLElement.oncutondblclick
Section titled “ondblclick”ondblclick: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12787
Inherited from
Section titled “Inherited from”HTMLElement.ondblclickondrag
Section titled “ondrag”ondrag: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12789
Inherited from
Section titled “Inherited from”HTMLElement.ondragondragend
Section titled “ondragend”ondragend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12791
Inherited from
Section titled “Inherited from”HTMLElement.ondragendondragenter
Section titled “ondragenter”ondragenter: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12793
Inherited from
Section titled “Inherited from”HTMLElement.ondragenterondragleave
Section titled “ondragleave”ondragleave: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12795
Inherited from
Section titled “Inherited from”HTMLElement.ondragleaveondragover
Section titled “ondragover”ondragover: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12797
Inherited from
Section titled “Inherited from”HTMLElement.ondragoverondragstart
Section titled “ondragstart”ondragstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12799
Inherited from
Section titled “Inherited from”HTMLElement.ondragstartondrop
Section titled “ondrop”ondrop: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12801
Inherited from
Section titled “Inherited from”HTMLElement.ondropondurationchange
Section titled “ondurationchange”ondurationchange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12803
Inherited from
Section titled “Inherited from”HTMLElement.ondurationchangeonemptied
Section titled “onemptied”onemptied: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12805
Inherited from
Section titled “Inherited from”HTMLElement.onemptiedonended
Section titled “onended”onended: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12807
Inherited from
Section titled “Inherited from”HTMLElement.onendedonerror
Section titled “onerror”onerror: OnErrorEventHandler;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12809
Inherited from
Section titled “Inherited from”HTMLElement.onerroronfocus
Section titled “onfocus”onfocus: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12811
Inherited from
Section titled “Inherited from”HTMLElement.onfocusonformdata
Section titled “onformdata”onformdata: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12813
Inherited from
Section titled “Inherited from”HTMLElement.onformdataonfullscreenchange
Section titled “onfullscreenchange”onfullscreenchange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10776
Inherited from
Section titled “Inherited from”HTMLElement.onfullscreenchangeonfullscreenerror
Section titled “onfullscreenerror”onfullscreenerror: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10778
Inherited from
Section titled “Inherited from”HTMLElement.onfullscreenerrorongotpointercapture
Section titled “ongotpointercapture”ongotpointercapture: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12815
Inherited from
Section titled “Inherited from”HTMLElement.ongotpointercaptureoninput
Section titled “oninput”oninput: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12817
Inherited from
Section titled “Inherited from”HTMLElement.oninputoninvalid
Section titled “oninvalid”oninvalid: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12819
Inherited from
Section titled “Inherited from”HTMLElement.oninvalidonkeydown
Section titled “onkeydown”onkeydown: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12821
Inherited from
Section titled “Inherited from”HTMLElement.onkeydownonkeypress
Section titled “onkeypress”onkeypress: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12827
Inherited from
Section titled “Inherited from”HTMLElement.onkeypressonkeyup
Section titled “onkeyup”onkeyup: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12829
Inherited from
Section titled “Inherited from”HTMLElement.onkeyuponload
Section titled “onload”onload: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12831
Inherited from
Section titled “Inherited from”HTMLElement.onloadonloadeddata
Section titled “onloadeddata”onloadeddata: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12833
Inherited from
Section titled “Inherited from”HTMLElement.onloadeddataonloadedmetadata
Section titled “onloadedmetadata”onloadedmetadata: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12835
Inherited from
Section titled “Inherited from”HTMLElement.onloadedmetadataonloadstart
Section titled “onloadstart”onloadstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12837
Inherited from
Section titled “Inherited from”HTMLElement.onloadstartonlostpointercapture
Section titled “onlostpointercapture”onlostpointercapture: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12839
Inherited from
Section titled “Inherited from”HTMLElement.onlostpointercaptureonmousedown
Section titled “onmousedown”onmousedown: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12841
Inherited from
Section titled “Inherited from”HTMLElement.onmousedownonmouseenter
Section titled “onmouseenter”onmouseenter: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12843
Inherited from
Section titled “Inherited from”HTMLElement.onmouseenteronmouseleave
Section titled “onmouseleave”onmouseleave: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12845
Inherited from
Section titled “Inherited from”HTMLElement.onmouseleaveonmousemove
Section titled “onmousemove”onmousemove: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12847
Inherited from
Section titled “Inherited from”HTMLElement.onmousemoveonmouseout
Section titled “onmouseout”onmouseout: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12849
Inherited from
Section titled “Inherited from”HTMLElement.onmouseoutonmouseover
Section titled “onmouseover”onmouseover: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12851
Inherited from
Section titled “Inherited from”HTMLElement.onmouseoveronmouseup
Section titled “onmouseup”onmouseup: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12853
Inherited from
Section titled “Inherited from”HTMLElement.onmouseuponpaste
Section titled “onpaste”onpaste: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12855
Inherited from
Section titled “Inherited from”HTMLElement.onpasteonpause
Section titled “onpause”onpause: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12857
Inherited from
Section titled “Inherited from”HTMLElement.onpauseonplay
Section titled “onplay”onplay: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12859
Inherited from
Section titled “Inherited from”HTMLElement.onplayonplaying
Section titled “onplaying”onplaying: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12861
Inherited from
Section titled “Inherited from”HTMLElement.onplayingonpointercancel
Section titled “onpointercancel”onpointercancel: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12863
Inherited from
Section titled “Inherited from”HTMLElement.onpointercancelonpointerdown
Section titled “onpointerdown”onpointerdown: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12865
Inherited from
Section titled “Inherited from”HTMLElement.onpointerdownonpointerenter
Section titled “onpointerenter”onpointerenter: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12867
Inherited from
Section titled “Inherited from”HTMLElement.onpointerenteronpointerleave
Section titled “onpointerleave”onpointerleave: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12869
Inherited from
Section titled “Inherited from”HTMLElement.onpointerleaveonpointermove
Section titled “onpointermove”onpointermove: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12871
Inherited from
Section titled “Inherited from”HTMLElement.onpointermoveonpointerout
Section titled “onpointerout”onpointerout: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12873
Inherited from
Section titled “Inherited from”HTMLElement.onpointeroutonpointerover
Section titled “onpointerover”onpointerover: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12875
Inherited from
Section titled “Inherited from”HTMLElement.onpointeroveronpointerrawupdate
Section titled “onpointerrawupdate”onpointerrawupdate: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12881
Available only in secure contexts.
Inherited from
Section titled “Inherited from”HTMLElement.onpointerrawupdateonpointerup
Section titled “onpointerup”onpointerup: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12883
Inherited from
Section titled “Inherited from”HTMLElement.onpointeruponprogress
Section titled “onprogress”onprogress: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12885
Inherited from
Section titled “Inherited from”HTMLElement.onprogressonratechange
Section titled “onratechange”onratechange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12887
Inherited from
Section titled “Inherited from”HTMLElement.onratechangeonreset
Section titled “onreset”onreset: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12889
Inherited from
Section titled “Inherited from”HTMLElement.onresetonresize
Section titled “onresize”onresize: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12891
Inherited from
Section titled “Inherited from”HTMLElement.onresizeonscroll
Section titled “onscroll”onscroll: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12893
Inherited from
Section titled “Inherited from”HTMLElement.onscrollonscrollend
Section titled “onscrollend”onscrollend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12895
Inherited from
Section titled “Inherited from”HTMLElement.onscrollendonsecuritypolicyviolation
Section titled “onsecuritypolicyviolation”onsecuritypolicyviolation: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12897
Inherited from
Section titled “Inherited from”HTMLElement.onsecuritypolicyviolationonseeked
Section titled “onseeked”onseeked: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12899
Inherited from
Section titled “Inherited from”HTMLElement.onseekedonseeking
Section titled “onseeking”onseeking: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12901
Inherited from
Section titled “Inherited from”HTMLElement.onseekingonselect
Section titled “onselect”onselect: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12903
Inherited from
Section titled “Inherited from”HTMLElement.onselectonselectionchange
Section titled “onselectionchange”onselectionchange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12905
Inherited from
Section titled “Inherited from”HTMLElement.onselectionchangeonselectstart
Section titled “onselectstart”onselectstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12907
Inherited from
Section titled “Inherited from”HTMLElement.onselectstartonslotchange
Section titled “onslotchange”onslotchange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12909
Inherited from
Section titled “Inherited from”HTMLElement.onslotchangeonstalled
Section titled “onstalled”onstalled: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12911
Inherited from
Section titled “Inherited from”HTMLElement.onstalledonsubmit
Section titled “onsubmit”onsubmit: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12913
Inherited from
Section titled “Inherited from”HTMLElement.onsubmitonsuspend
Section titled “onsuspend”onsuspend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12915
Inherited from
Section titled “Inherited from”HTMLElement.onsuspendontimeupdate
Section titled “ontimeupdate”ontimeupdate: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12917
Inherited from
Section titled “Inherited from”HTMLElement.ontimeupdateontoggle
Section titled “ontoggle”ontoggle: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12919
Inherited from
Section titled “Inherited from”HTMLElement.ontoggleontouchcancel?
Section titled “ontouchcancel?”optional ontouchcancel?: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12921
Inherited from
Section titled “Inherited from”HTMLElement.ontouchcancelontouchend?
Section titled “ontouchend?”optional ontouchend?: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12923
Inherited from
Section titled “Inherited from”HTMLElement.ontouchendontouchmove?
Section titled “ontouchmove?”optional ontouchmove?: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12925
Inherited from
Section titled “Inherited from”HTMLElement.ontouchmoveontouchstart?
Section titled “ontouchstart?”optional ontouchstart?: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12927
Inherited from
Section titled “Inherited from”HTMLElement.ontouchstartontransitioncancel
Section titled “ontransitioncancel”ontransitioncancel: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12929
Inherited from
Section titled “Inherited from”HTMLElement.ontransitioncancelontransitionend
Section titled “ontransitionend”ontransitionend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12931
Inherited from
Section titled “Inherited from”HTMLElement.ontransitionendontransitionrun
Section titled “ontransitionrun”ontransitionrun: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12933
Inherited from
Section titled “Inherited from”HTMLElement.ontransitionrunontransitionstart
Section titled “ontransitionstart”ontransitionstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12935
Inherited from
Section titled “Inherited from”HTMLElement.ontransitionstartonvolumechange
Section titled “onvolumechange”onvolumechange: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12937
Inherited from
Section titled “Inherited from”HTMLElement.onvolumechangeonwaiting
Section titled “onwaiting”onwaiting: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12939
Inherited from
Section titled “Inherited from”HTMLElement.onwaitingonwebkitanimationend
Section titled “onwebkitanimationend”onwebkitanimationend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12945
Inherited from
Section titled “Inherited from”HTMLElement.onwebkitanimationendonwebkitanimationiteration
Section titled “onwebkitanimationiteration”onwebkitanimationiteration: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12951
Inherited from
Section titled “Inherited from”HTMLElement.onwebkitanimationiterationonwebkitanimationstart
Section titled “onwebkitanimationstart”onwebkitanimationstart: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12957
Inherited from
Section titled “Inherited from”HTMLElement.onwebkitanimationstartonwebkittransitionend
Section titled “onwebkittransitionend”onwebkittransitionend: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12963
Inherited from
Section titled “Inherited from”HTMLElement.onwebkittransitionendonwheel
Section titled “onwheel”onwheel: ((this, ev) => any) | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:12965
Inherited from
Section titled “Inherited from”HTMLElement.onwheelouterHTML
Section titled “outerHTML”outerHTML: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10784
The outerHTML attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants.
Inherited from
Section titled “Inherited from”HTMLElement.outerHTMLouterText
Section titled “outerText”outerText: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13778
The outerText property of the HTMLElement interface returns the same value as HTMLElement.innerText.
Inherited from
Section titled “Inherited from”HTMLElement.outerTextownerDocument
Section titled “ownerDocument”readonly ownerDocument: Document;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10785
The read-only ownerDocument property of the Node interface returns the top-level document object of the node.
Inherited from
Section titled “Inherited from”HTMLElement.ownerDocumentparentElement
Section titled “parentElement”readonly parentElement: HTMLElement | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21724
The read-only parentElement property of Node interface returns the DOM node’s parent Element, or null if the node either has no parent, or its parent isn’t a DOM Element.
Inherited from
Section titled “Inherited from”HTMLElement.parentElementparentNode
Section titled “parentNode”readonly parentNode: ParentNode | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21730
The read-only parentNode property of the Node interface returns the parent of the specified node in the DOM tree.
Inherited from
Section titled “Inherited from”HTMLElement.parentNodepopover
Section titled “popover”popover: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13784
The popover property of the HTMLElement interface gets and sets an element’s popover state via JavaScript ('auto', 'hint', or 'manual'), and can be used for feature detection.
Inherited from
Section titled “Inherited from”HTMLElement.popoverprefix
Section titled “prefix”readonly prefix: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10798
The Element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified.
Inherited from
Section titled “Inherited from”HTMLElement.prefixpreviousElementSibling
Section titled “previousElementSibling”readonly previousElementSibling: Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22009
Returns the first preceding sibling that is an element, and null otherwise.
Inherited from
Section titled “Inherited from”HTMLElement.previousElementSiblingpreviousSibling
Section titled “previousSibling”readonly previousSibling: ChildNode | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21736
The read-only previousSibling property of the Node interface returns the node immediately preceding the specified one in its parent’s or null if the specified node is the first in that list.
Inherited from
Section titled “Inherited from”HTMLElement.previousSiblingPROCESSING_INSTRUCTION_NODE
Section titled “PROCESSING_INSTRUCTION_NODE”readonly PROCESSING_INSTRUCTION_NODE: 7;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21843
node is a ProcessingInstruction node.
Inherited from
Section titled “Inherited from”HTMLElement.PROCESSING_INSTRUCTION_NODErole: string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2709
Inherited from
Section titled “Inherited from”HTMLElement.rolescrollHeight
Section titled “scrollHeight”readonly scrollHeight: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10804
The scrollHeight read-only property of the Element interface is a measurement of the height of an element’s content, including content not visible on the screen due to overflow.
Inherited from
Section titled “Inherited from”HTMLElement.scrollHeightscrollLeft
Section titled “scrollLeft”scrollLeft: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10810
The scrollLeft property of the Element interface gets or sets the number of pixels by which an element’s content is scrolled from its left edge.
Inherited from
Section titled “Inherited from”HTMLElement.scrollLeftscrollTop
Section titled “scrollTop”scrollTop: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10816
The scrollTop property of the Element interface gets or sets the number of pixels by which an element’s content is scrolled from its top edge.
Inherited from
Section titled “Inherited from”HTMLElement.scrollTopscrollWidth
Section titled “scrollWidth”readonly scrollWidth: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10822
The scrollWidth read-only property of the Element interface is a measurement of the width of an element’s content, including content not visible on the screen due to overflow.
Inherited from
Section titled “Inherited from”HTMLElement.scrollWidthshadowRoot
Section titled “shadowRoot”readonly shadowRoot: ShadowRoot | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10828
The Element.shadowRoot read-only property represents the shadow root hosted by the element.
Inherited from
Section titled “Inherited from”HTMLElement.shadowRootslot: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10834
The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in.
Inherited from
Section titled “Inherited from”HTMLElement.slotspellcheck
Section titled “spellcheck”spellcheck: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13790
The spellcheck property of the HTMLElement interface represents a boolean value that controls the spell-checking hint.
Inherited from
Section titled “Inherited from”HTMLElement.spellchecktabIndex
Section titled “tabIndex”tabIndex: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16071
Inherited from
Section titled “Inherited from”HTMLElement.tabIndextagName
Section titled “tagName”readonly tagName: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10840
The tagName read-only property of the Element interface returns the tag name of the element on which it’s called.
Inherited from
Section titled “Inherited from”HTMLElement.tagNameTEXT_NODE
Section titled “TEXT_NODE”readonly TEXT_NODE: 3;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21837
node is a Text node.
Inherited from
Section titled “Inherited from”HTMLElement.TEXT_NODEtitle: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13796
The HTMLElement.title property represents the title of the element: the text usually displayed in a ‘tooltip’ popup when the mouse is over the node.
Inherited from
Section titled “Inherited from”HTMLElement.titletranslate
Section titled “translate”translate: boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13802
The translate property of the HTMLElement interface indicates whether an element’s attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.
Inherited from
Section titled “Inherited from”HTMLElement.translatewritingSuggestions
Section titled “writingSuggestions”writingSuggestions: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13808
The writingSuggestions property of the HTMLElement interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.
Inherited from
Section titled “Inherited from”HTMLElement.writingSuggestionsobservedAttributes
Section titled “observedAttributes”readonly static observedAttributes: readonly string[] = OBSERVED_ATTRIBUTES;Defined in: src/element/SfnDiagramElement.ts:78
Accessors
Section titled “Accessors”classList
Section titled “classList”Get Signature
Section titled “Get Signature”get classList(): DOMTokenList;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10713
The Element.classList is a read-only property that returns a live DOMTokenList collection of the class attributes of the element.
Returns
Section titled “Returns”DOMTokenList
Set Signature
Section titled “Set Signature”set classList(value): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10714
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.classListdefinition
Section titled “definition”Get Signature
Section titled “Get Signature”get definition(): | string | AslDefinition | undefined;Defined in: src/element/SfnDiagramElement.ts:88
ASL definition as an object or JSON string. Property-set values are not reflected to the definition attribute.
Returns
Section titled “Returns”| string
| AslDefinition
| undefined
Set Signature
Section titled “Set Signature”set definition(value): void;Defined in: src/element/SfnDiagramElement.ts:92
Parameters
Section titled “Parameters”| string
| AslDefinition
| undefined
Returns
Section titled “Returns”void
format
Section titled “format”Get Signature
Section titled “Get Signature”get format(): "svg" | "mermaid";Defined in: src/element/SfnDiagramElement.ts:108
'svg' (default) or 'mermaid'. Reflected to/from the format attribute.
Returns
Section titled “Returns”"svg" | "mermaid"
Set Signature
Section titled “Set Signature”set format(value): void;Defined in: src/element/SfnDiagramElement.ts:112
Parameters
Section titled “Parameters”"svg" | "mermaid"
Returns
Section titled “Returns”void
history
Section titled “history”Get Signature
Section titled “Get Signature”get history(): | ExecutionHistoryInput | undefined;Defined in: src/element/SfnDiagramElement.ts:98
Optional execution history overlay. Property-only — objects don’t survive an attribute round-trip.
Returns
Section titled “Returns”| ExecutionHistoryInput
| undefined
Set Signature
Section titled “Set Signature”set history(value): void;Defined in: src/element/SfnDiagramElement.ts:102
Parameters
Section titled “Parameters”| ExecutionHistoryInput
| undefined
Returns
Section titled “Returns”void
interactive
Section titled “interactive”Get Signature
Section titled “Get Signature”get interactive(): boolean;Defined in: src/element/SfnDiagramElement.ts:150
Enables pan/zoom, state search, the minimap, and the detail panel for a clicked state or edge.
Returns
Section titled “Returns”boolean
Set Signature
Section titled “Set Signature”set interactive(value): void;Defined in: src/element/SfnDiagramElement.ts:154
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
layout
Section titled “layout”Get Signature
Section titled “Get Signature”get layout(): LayoutDirection;Defined in: src/element/SfnDiagramElement.ts:117
Graph layout direction. Reflected to/from the layout attribute. Defaults to 'TB'.
Returns
Section titled “Returns”Set Signature
Section titled “Set Signature”set layout(value): void;Defined in: src/element/SfnDiagramElement.ts:122
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Get Signature
Section titled “Get Signature”get part(): DOMTokenList;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10791
The part property of the Element interface represents the part identifier(s) of the element (i.e., set using the part attribute), returned as a DOMTokenList.
Returns
Section titled “Returns”DOMTokenList
Set Signature
Section titled “Set Signature”set part(value): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10792
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.partGet Signature
Section titled “Get Signature”get style(): CSSStyleDeclaration;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11119
Returns
Section titled “Returns”CSSStyleDeclaration
Set Signature
Section titled “Set Signature”set style(cssText): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11120
Parameters
Section titled “Parameters”cssText
Section titled “cssText”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.styletextContent
Section titled “textContent”Get Signature
Section titled “Get Signature”get textContent(): string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11102
Returns
Section titled “Returns”string
Set Signature
Section titled “Set Signature”set textContent(value): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11103
The textContent property of the Node interface represents the text content of the node and its descendants.
Parameters
Section titled “Parameters”string | null
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.textContentGet Signature
Section titled “Get Signature”get theme(): ThemeOption;Defined in: src/element/SfnDiagramElement.ts:130
Diagram theme. The theme attribute only accepts 'light'/'dark'; set the
property directly for a CustomTheme object.
Returns
Section titled “Returns”Set Signature
Section titled “Set Signature”set theme(value): void;Defined in: src/element/SfnDiagramElement.ts:134
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”Call Signature
Section titled “Call Signature”addEventListener<K>( type, listener, options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13839
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementEventMap
Parameters
Section titled “Parameters”K
listener
Section titled “listener”(this, ev) => any
options?
Section titled “options?”boolean | AddEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.addEventListenerCall Signature
Section titled “Call Signature”addEventListener( type, listener, options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13840
Parameters
Section titled “Parameters”string
listener
Section titled “listener”EventListenerOrEventListenerObject
options?
Section titled “options?”boolean | AddEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.addEventListenerafter()
Section titled “after()”after(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:7953
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.afteranimate()
Section titled “animate()”animate(keyframes, options?): Animation;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2921
Parameters
Section titled “Parameters”keyframes
Section titled “keyframes”Keyframe[] | PropertyIndexedKeyframes | null
options?
Section titled “options?”number | KeyframeAnimationOptions
Returns
Section titled “Returns”Animation
Inherited from
Section titled “Inherited from”HTMLElement.animateappend()
Section titled “append()”append(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22694
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.appendappendChild()
Section titled “appendChild()”appendChild<T>(node): T;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21748
The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node.
Type Parameters
Section titled “Type Parameters”T extends Node
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”HTMLElement.appendChildattachInternals()
Section titled “attachInternals()”attachInternals(): ElementInternals;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13814
The HTMLElement.attachInternals() method returns an ElementInternals object.
Returns
Section titled “Returns”ElementInternals
Inherited from
Section titled “Inherited from”HTMLElement.attachInternalsattachShadow()
Section titled “attachShadow()”attachShadow(init): ShadowRoot;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10846
The Element.attachShadow() method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
Parameters
Section titled “Parameters”ShadowRootInit
Returns
Section titled “Returns”ShadowRoot
Inherited from
Section titled “Inherited from”HTMLElement.attachShadowattributeChangedCallback()
Section titled “attributeChangedCallback()”attributeChangedCallback( name, oldValue, newValue): void;Defined in: src/element/SfnDiagramElement.ts:168
Parameters
Section titled “Parameters”"definition" | "format" | "layout" | "theme" | "interactive"
oldValue
Section titled “oldValue”string | null
newValue
Section titled “newValue”string | null
Returns
Section titled “Returns”void
before()
Section titled “before()”before(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:7961
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.beforeblur()
Section titled “blur()”blur(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16073
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.blurcheckVisibility()
Section titled “checkVisibility()”checkVisibility(options?): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10852
The checkVisibility() method of the Element interface checks whether the element is visible.
Parameters
Section titled “Parameters”options?
Section titled “options?”CheckVisibilityOptions
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.checkVisibilityclick()
Section titled “click()”click(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13820
The HTMLElement.click() method simulates a mouse click on an element.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.clickcloneNode()
Section titled “cloneNode()”cloneNode(subtree?): Node;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21754
The cloneNode() method of the Node interface returns a duplicate of the node on which this method was called.
Parameters
Section titled “Parameters”subtree?
Section titled “subtree?”boolean
Returns
Section titled “Returns”Node
Inherited from
Section titled “Inherited from”HTMLElement.cloneNodeclosest()
Section titled “closest()”Call Signature
Section titled “Call Signature”closest<K>(selector): HTMLElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10858
The closest() method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementTagNameMap
Parameters
Section titled “Parameters”selector
Section titled “selector”K
Returns
Section titled “Returns”HTMLElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.closestCall Signature
Section titled “Call Signature”closest<K>(selector): SVGElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10859
Type Parameters
Section titled “Type Parameters”K extends keyof SVGElementTagNameMap
Parameters
Section titled “Parameters”selector
Section titled “selector”K
Returns
Section titled “Returns”SVGElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.closestCall Signature
Section titled “Call Signature”closest<K>(selector): MathMLElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10860
Type Parameters
Section titled “Type Parameters”K extends keyof MathMLElementTagNameMap
Parameters
Section titled “Parameters”selector
Section titled “selector”K
Returns
Section titled “Returns”MathMLElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.closestCall Signature
Section titled “Call Signature”closest<E>(selectors): E | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10861
Type Parameters
Section titled “Type Parameters”E extends Element = Element
Parameters
Section titled “Parameters”selectors
Section titled “selectors”string
Returns
Section titled “Returns”E | null
Inherited from
Section titled “Inherited from”HTMLElement.closestcompareDocumentPosition()
Section titled “compareDocumentPosition()”compareDocumentPosition(other): number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21760
The compareDocumentPosition() method of the Node interface reports the position of its argument node relative to the node on which it is called.
Parameters
Section titled “Parameters”Node
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”HTMLElement.compareDocumentPositioncomputedStyleMap()
Section titled “computedStyleMap()”computedStyleMap(): StylePropertyMapReadOnly;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10867
The computedStyleMap() method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
Returns
Section titled “Returns”StylePropertyMapReadOnly
Inherited from
Section titled “Inherited from”HTMLElement.computedStyleMapconnectedCallback()
Section titled “connectedCallback()”connectedCallback(): void;Defined in: src/element/SfnDiagramElement.ts:158
Returns
Section titled “Returns”void
contains()
Section titled “contains()”contains(other): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21766
The contains() method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children’s direct children, and so on.
Parameters
Section titled “Parameters”Node | null
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.containsdisconnectedCallback()
Section titled “disconnectedCallback()”disconnectedCallback(): void;Defined in: src/element/SfnDiagramElement.ts:163
Returns
Section titled “Returns”void
dispatchEvent()
Section titled “dispatchEvent()”dispatchEvent(event): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11575
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.dispatchEventfocus()
Section titled “focus()”focus(options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:16075
Parameters
Section titled “Parameters”options?
Section titled “options?”FocusOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.focusgetAnimations()
Section titled “getAnimations()”getAnimations(options?): Animation[];Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:2923
Parameters
Section titled “Parameters”options?
Section titled “options?”GetAnimationsOptions
Returns
Section titled “Returns”Animation[]
Inherited from
Section titled “Inherited from”HTMLElement.getAnimationsgetAttribute()
Section titled “getAttribute()”getAttribute(qualifiedName): string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10873
The getAttribute() method of the element.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”HTMLElement.getAttributegetAttributeNames()
Section titled “getAttributeNames()”getAttributeNames(): string[];Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10885
The getAttributeNames() method of the array.
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”HTMLElement.getAttributeNamesgetAttributeNode()
Section titled “getAttributeNode()”getAttributeNode(qualifiedName): Attr | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10891
Returns the specified attribute of the specified element, as an Attr node.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
Returns
Section titled “Returns”Attr | null
Inherited from
Section titled “Inherited from”HTMLElement.getAttributeNodegetAttributeNodeNS()
Section titled “getAttributeNodeNS()”getAttributeNodeNS(namespace, localName): Attr | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10897
The getAttributeNodeNS() method of the Element interface returns the namespaced Attr node of an element.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
localName
Section titled “localName”string
Returns
Section titled “Returns”Attr | null
Inherited from
Section titled “Inherited from”HTMLElement.getAttributeNodeNSgetAttributeNS()
Section titled “getAttributeNS()”getAttributeNS(namespace, localName): string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10879
The getAttributeNS() method of the Element interface returns the string value of the attribute with the specified namespace and name.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
localName
Section titled “localName”string
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”HTMLElement.getAttributeNSgetBoundingClientRect()
Section titled “getBoundingClientRect()”getBoundingClientRect(): DOMRect;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10903
The Element.getBoundingClientRect() method returns a position relative to the viewport.
Returns
Section titled “Returns”DOMRect
Inherited from
Section titled “Inherited from”HTMLElement.getBoundingClientRectgetClientRects()
Section titled “getClientRects()”getClientRects(): DOMRectList;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10909
The getClientRects() method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.
Returns
Section titled “Returns”DOMRectList
Inherited from
Section titled “Inherited from”HTMLElement.getClientRectsgetElementsByClassName()
Section titled “getElementsByClassName()”getElementsByClassName(classNames): HTMLCollectionOf<Element>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10915
The Element method getElementsByClassName() returns a live specified class name or names.
Parameters
Section titled “Parameters”classNames
Section titled “classNames”string
Returns
Section titled “Returns”HTMLCollectionOf<Element>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByClassNamegetElementsByTagName()
Section titled “getElementsByTagName()”Call Signature
Section titled “Call Signature”getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10921
The Element.getElementsByTagName() method returns a live All descendants of the specified element are searched, but not the element itself.
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementTagNameMap
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”K
Returns
Section titled “Returns”HTMLCollectionOf<HTMLElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameCall Signature
Section titled “Call Signature”getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10922
Type Parameters
Section titled “Type Parameters”K extends keyof SVGElementTagNameMap
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”K
Returns
Section titled “Returns”HTMLCollectionOf<SVGElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameCall Signature
Section titled “Call Signature”getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10923
Type Parameters
Section titled “Type Parameters”K extends keyof MathMLElementTagNameMap
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”K
Returns
Section titled “Returns”HTMLCollectionOf<MathMLElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameCall Signature
Section titled “Call Signature”getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10925
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”K
Returns
Section titled “Returns”HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameCall Signature
Section titled “Call Signature”getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10926
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
Returns
Section titled “Returns”HTMLCollectionOf<Element>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNamegetElementsByTagNameNS()
Section titled “getElementsByTagNameNS()”Call Signature
Section titled “Call Signature”getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10932
The Element.getElementsByTagNameNS() method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.
Parameters
Section titled “Parameters”namespaceURI
Section titled “namespaceURI”"http://www.w3.org/1999/xhtml"
localName
Section titled “localName”string
Returns
Section titled “Returns”HTMLCollectionOf<HTMLElement>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameNSCall Signature
Section titled “Call Signature”getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10933
Parameters
Section titled “Parameters”namespaceURI
Section titled “namespaceURI”"http://www.w3.org/2000/svg"
localName
Section titled “localName”string
Returns
Section titled “Returns”HTMLCollectionOf<SVGElement>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameNSCall Signature
Section titled “Call Signature”getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10934
Parameters
Section titled “Parameters”namespaceURI
Section titled “namespaceURI”"http://www.w3.org/1998/Math/MathML"
localName
Section titled “localName”string
Returns
Section titled “Returns”HTMLCollectionOf<MathMLElement>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameNSCall Signature
Section titled “Call Signature”getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10935
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
localName
Section titled “localName”string
Returns
Section titled “Returns”HTMLCollectionOf<Element>
Inherited from
Section titled “Inherited from”HTMLElement.getElementsByTagNameNSgetHTML()
Section titled “getHTML()”getHTML(options?): string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10941
The getHTML() method of the Element interface is used to serialize an element’s DOM to an HTML string.
Parameters
Section titled “Parameters”options?
Section titled “options?”GetHTMLOptions
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”HTMLElement.getHTMLgetRootNode()
Section titled “getRootNode()”getRootNode(options?): Node;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21772
The getRootNode() method of the Node interface returns the context object’s root, which optionally includes the shadow root if it is available.
Parameters
Section titled “Parameters”options?
Section titled “options?”GetRootNodeOptions
Returns
Section titled “Returns”Node
Inherited from
Section titled “Inherited from”HTMLElement.getRootNodehasAttribute()
Section titled “hasAttribute()”hasAttribute(qualifiedName): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10947
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.hasAttributehasAttributeNS()
Section titled “hasAttributeNS()”hasAttributeNS(namespace, localName): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10953
The hasAttributeNS() method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
localName
Section titled “localName”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.hasAttributeNShasAttributes()
Section titled “hasAttributes()”hasAttributes(): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10959
The hasAttributes() method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.hasAttributeshasChildNodes()
Section titled “hasChildNodes()”hasChildNodes(): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21778
The hasChildNodes() method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.hasChildNodeshasPointerCapture()
Section titled “hasPointerCapture()”hasPointerCapture(pointerId): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10965
The hasPointerCapture() method of the pointer capture for the pointer identified by the given pointer ID.
Parameters
Section titled “Parameters”pointerId
Section titled “pointerId”number
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.hasPointerCapturehidePopover()
Section titled “hidePopover()”hidePopover(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13826
The hidePopover() method of the HTMLElement interface hides a popover element (i.e., one that has a valid popover attribute) by removing it from the top layer and styling it with display: none.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.hidePopoverinsertAdjacentElement()
Section titled “insertAdjacentElement()”insertAdjacentElement(where, element): Element | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10971
The insertAdjacentElement() method of the relative to the element it is invoked upon.
Parameters
Section titled “Parameters”InsertPosition
element
Section titled “element”Element
Returns
Section titled “Returns”Element | null
Inherited from
Section titled “Inherited from”HTMLElement.insertAdjacentElementinsertAdjacentHTML()
Section titled “insertAdjacentHTML()”insertAdjacentHTML(position, string): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10977
The insertAdjacentHTML() method of the the resulting nodes into the DOM tree at a specified position.
Parameters
Section titled “Parameters”position
Section titled “position”InsertPosition
string
Section titled “string”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.insertAdjacentHTMLinsertAdjacentText()
Section titled “insertAdjacentText()”insertAdjacentText(where, data): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10983
The insertAdjacentText() method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.
Parameters
Section titled “Parameters”InsertPosition
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.insertAdjacentTextinsertBefore()
Section titled “insertBefore()”insertBefore<T>(node, child): T;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21784
The insertBefore() method of the Node interface inserts a node before a reference node as a child of a specified parent node.
Type Parameters
Section titled “Type Parameters”T extends Node
Parameters
Section titled “Parameters”T
Node | null
Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”HTMLElement.insertBeforeisDefaultNamespace()
Section titled “isDefaultNamespace()”isDefaultNamespace(namespace): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21790
The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.isDefaultNamespaceisEqualNode()
Section titled “isEqualNode()”isEqualNode(otherNode): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21796
The isEqualNode() method of the Node interface tests whether two nodes are equal.
Parameters
Section titled “Parameters”otherNode
Section titled “otherNode”Node | null
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.isEqualNodeisSameNode()
Section titled “isSameNode()”isSameNode(otherNode): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21802
The isSameNode() method of the Node interface is a legacy alias the for the === strict equality operator.
Parameters
Section titled “Parameters”otherNode
Section titled “otherNode”Node | null
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.isSameNodelookupNamespaceURI()
Section titled “lookupNamespaceURI()”lookupNamespaceURI(prefix): string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21808
The lookupNamespaceURI() method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and null if not).
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string | null
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”HTMLElement.lookupNamespaceURIlookupPrefix()
Section titled “lookupPrefix()”lookupPrefix(namespace): string | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21814
The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”HTMLElement.lookupPrefixmatches()
Section titled “matches()”matches(selectors): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10989
The matches() method of the Element interface tests whether the element would be selected by the specified CSS selector.
Parameters
Section titled “Parameters”selectors
Section titled “selectors”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.matchesnormalize()
Section titled “normalize()”normalize(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21820
The normalize() method of the Node interface puts the specified node and all of its sub-tree into a normalized form.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.normalizeprepend()
Section titled “prepend()”prepend(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22702
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.prependquerySelector()
Section titled “querySelector()”Call Signature
Section titled “Call Signature”querySelector<K>(selectors): HTMLElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22708
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”HTMLElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorCall Signature
Section titled “Call Signature”querySelector<K>(selectors): SVGElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22709
Type Parameters
Section titled “Type Parameters”K extends keyof SVGElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”SVGElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorCall Signature
Section titled “Call Signature”querySelector<K>(selectors): MathMLElementTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22710
Type Parameters
Section titled “Type Parameters”K extends keyof MathMLElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”MathMLElementTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorCall Signature
Section titled “Call Signature”querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K] | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22712
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”HTMLElementDeprecatedTagNameMap[K] | null
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorCall Signature
Section titled “Call Signature”querySelector<E>(selectors): E | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22713
Type Parameters
Section titled “Type Parameters”E extends Element = Element
Parameters
Section titled “Parameters”selectors
Section titled “selectors”string
Returns
Section titled “Returns”E | null
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorquerySelectorAll()
Section titled “querySelectorAll()”Call Signature
Section titled “Call Signature”querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22719
Returns all element descendants of node that match selectors.
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”NodeListOf<HTMLElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorAllCall Signature
Section titled “Call Signature”querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22720
Type Parameters
Section titled “Type Parameters”K extends keyof SVGElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”NodeListOf<SVGElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorAllCall Signature
Section titled “Call Signature”querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22721
Type Parameters
Section titled “Type Parameters”K extends keyof MathMLElementTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”NodeListOf<MathMLElementTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorAllCall Signature
Section titled “Call Signature”querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22723
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Section titled “Parameters”selectors
Section titled “selectors”K
Returns
Section titled “Returns”NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorAllCall Signature
Section titled “Call Signature”querySelectorAll<E>(selectors): NodeListOf<E>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22724
Type Parameters
Section titled “Type Parameters”E extends Element = Element
Parameters
Section titled “Parameters”selectors
Section titled “selectors”string
Returns
Section titled “Returns”NodeListOf<E>
Inherited from
Section titled “Inherited from”HTMLElement.querySelectorAllreleasePointerCapture()
Section titled “releasePointerCapture()”releasePointerCapture(pointerId): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:10995
The releasePointerCapture() method of the previously set for a specific (PointerEvent) pointer.
Parameters
Section titled “Parameters”pointerId
Section titled “pointerId”number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.releasePointerCaptureremove()
Section titled “remove()”remove(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:7967
Removes node.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.removeremoveAttribute()
Section titled “removeAttribute()”removeAttribute(qualifiedName): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11001
The Element method removeAttribute() removes the attribute with the specified name from the element.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.removeAttributeremoveAttributeNode()
Section titled “removeAttributeNode()”removeAttributeNode(attr): Attr;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11013
The removeAttributeNode() method of the Element interface removes the specified Attr node from the element.
Parameters
Section titled “Parameters”Attr
Returns
Section titled “Returns”Attr
Inherited from
Section titled “Inherited from”HTMLElement.removeAttributeNoderemoveAttributeNS()
Section titled “removeAttributeNS()”removeAttributeNS(namespace, localName): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11007
The removeAttributeNS() method of the If you are working with HTML and you don’t need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
localName
Section titled “localName”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.removeAttributeNSremoveChild()
Section titled “removeChild()”removeChild<T>(child): T;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21826
The removeChild() method of the Node interface removes a child node from the DOM and returns the removed node.
Type Parameters
Section titled “Type Parameters”T extends Node
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”HTMLElement.removeChildremoveEventListener()
Section titled “removeEventListener()”Call Signature
Section titled “Call Signature”removeEventListener<K>( type, listener, options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13841
Type Parameters
Section titled “Type Parameters”K extends keyof HTMLElementEventMap
Parameters
Section titled “Parameters”K
listener
Section titled “listener”(this, ev) => any
options?
Section titled “options?”boolean | EventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.removeEventListenerCall Signature
Section titled “Call Signature”removeEventListener( type, listener, options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13842
Parameters
Section titled “Parameters”string
listener
Section titled “listener”EventListenerOrEventListenerObject
options?
Section titled “options?”boolean | EventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.removeEventListenerreplaceChild()
Section titled “replaceChild()”replaceChild<T>(node, child): T;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21832
The replaceChild() method of the Node interface replaces a child node within the given (parent) node.
Type Parameters
Section titled “Type Parameters”T extends Node
Parameters
Section titled “Parameters”Node
T
Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”HTMLElement.replaceChildreplaceChildren()
Section titled “replaceChildren()”replaceChildren(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:22732
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.replaceChildrenreplaceWith()
Section titled “replaceWith()”replaceWith(...nodes): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:7975
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
Section titled “Parameters”…(string | Node)[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.replaceWithrequestFullscreen()
Section titled “requestFullscreen()”requestFullscreen(options?): Promise<void>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11019
The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in fullscreen mode.
Parameters
Section titled “Parameters”options?
Section titled “options?”FullscreenOptions
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”HTMLElement.requestFullscreenrequestPointerLock()
Section titled “requestPointerLock()”requestPointerLock(options?): Promise<void>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11025
The requestPointerLock() method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.
Parameters
Section titled “Parameters”options?
Section titled “options?”PointerLockOptions
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”HTMLElement.requestPointerLockscroll()
Section titled “scroll()”Call Signature
Section titled “Call Signature”scroll(options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11031
The scroll() method of the Element interface scrolls the element to a particular set of coordinates inside a given element.
Parameters
Section titled “Parameters”options?
Section titled “options?”ScrollToOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollCall Signature
Section titled “Call Signature”scroll(x, y): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11032
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollscrollBy()
Section titled “scrollBy()”Call Signature
Section titled “Call Signature”scrollBy(options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11038
The scrollBy() method of the Element interface scrolls an element by the given amount.
Parameters
Section titled “Parameters”options?
Section titled “options?”ScrollToOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollByCall Signature
Section titled “Call Signature”scrollBy(x, y): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11039
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollByscrollIntoView()
Section titled “scrollIntoView()”scrollIntoView(arg?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11045
The Element interface’s scrollIntoView() method scrolls the element’s ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
Parameters
Section titled “Parameters”boolean | ScrollIntoViewOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollIntoViewscrollTo()
Section titled “scrollTo()”Call Signature
Section titled “Call Signature”scrollTo(options?): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11051
The scrollTo() method of the Element interface scrolls to a particular set of coordinates inside a given element.
Parameters
Section titled “Parameters”options?
Section titled “options?”ScrollToOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollToCall Signature
Section titled “Call Signature”scrollTo(x, y): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11052
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.scrollTosetAttribute()
Section titled “setAttribute()”setAttribute(qualifiedName, value): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11058
The setAttribute() method of the Element interface sets the value of an attribute on the specified element.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.setAttributesetAttributeNode()
Section titled “setAttributeNode()”setAttributeNode(attr): Attr | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11070
The setAttributeNode() method of the Element interface adds a new Attr node to the specified element.
Parameters
Section titled “Parameters”Attr
Returns
Section titled “Returns”Attr | null
Inherited from
Section titled “Inherited from”HTMLElement.setAttributeNodesetAttributeNodeNS()
Section titled “setAttributeNodeNS()”setAttributeNodeNS(attr): Attr | null;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11076
The setAttributeNodeNS() method of the Element interface adds a new namespaced Attr node to an element.
Parameters
Section titled “Parameters”Attr
Returns
Section titled “Returns”Attr | null
Inherited from
Section titled “Inherited from”HTMLElement.setAttributeNodeNSsetAttributeNS()
Section titled “setAttributeNS()”setAttributeNS( namespace, qualifiedName, value): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11064
setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string | null
qualifiedName
Section titled “qualifiedName”string
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.setAttributeNSsetHTMLUnsafe()
Section titled “setHTMLUnsafe()”setHTMLUnsafe(html): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11082
The setHTMLUnsafe() method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don’t belong in the context, and then using it to replace the element’s subtree in the DOM.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.setHTMLUnsafesetPointerCapture()
Section titled “setPointerCapture()”setPointerCapture(pointerId): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11088
The setPointerCapture() method of the capture target of future pointer events.
Parameters
Section titled “Parameters”pointerId
Section titled “pointerId”number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.setPointerCaptureshowPopover()
Section titled “showPopover()”showPopover(): void;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13832
The showPopover() method of the HTMLElement interface shows a Popover_API element (i.e., one that has a valid popover attribute) by adding it to the top layer.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”HTMLElement.showPopovertoggleAttribute()
Section titled “toggleAttribute()”toggleAttribute(qualifiedName, force?): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11094
The toggleAttribute() method of the present and adding it if it is not present) on the given element.
Parameters
Section titled “Parameters”qualifiedName
Section titled “qualifiedName”string
force?
Section titled “force?”boolean
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.toggleAttributetogglePopover()
Section titled “togglePopover()”togglePopover(options?): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:13838
The togglePopover() method of the HTMLElement interface toggles a Popover_API element (i.e., one that has a valid popover attribute) between the hidden and showing states.
Parameters
Section titled “Parameters”options?
Section titled “options?”boolean
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.togglePopoverwebkitMatchesSelector()
Section titled “webkitMatchesSelector()”webkitMatchesSelector(selectors): boolean;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11100
Parameters
Section titled “Parameters”selectors
Section titled “selectors”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”HTMLElement.webkitMatchesSelector