pseudo-dom
    Preparing search index...

    Interface PseudoElement

    Simulate the behaviour of the Element Class when there is no DOM available.

    interface PseudoElement {
        get ariaAtomic(): string;
        set ariaAtomic(value: string): void;
        get ariaAutoComplete(): string;
        set ariaAutoComplete(value: string): void;
        get ariaBusy(): string;
        set ariaBusy(value: string): void;
        get ariaChecked(): string;
        set ariaChecked(value: string): void;
        get ariaColCount(): string;
        set ariaColCount(value: string): void;
        get ariaColIndex(): string;
        set ariaColIndex(value: string): void;
        get ariaColSpan(): string;
        set ariaColSpan(value: string): void;
        get ariaCurrent(): string;
        set ariaCurrent(value: string): void;
        get ariaDescription(): string;
        set ariaDescription(value: string): void;
        get ariaDisabled(): string;
        set ariaDisabled(value: string): void;
        get ariaExpanded(): string;
        set ariaExpanded(value: string): void;
        get ariaHasPopup(): string;
        set ariaHasPopup(value: string): void;
        get ariaHidden(): string;
        set ariaHidden(value: string): void;
        get ariaKeyShortcuts(): string;
        set ariaKeyShortcuts(value: string): void;
        get ariaLabel(): string;
        set ariaLabel(value: string): void;
        get ariaLevel(): string;
        set ariaLevel(value: string): void;
        get ariaLive(): string;
        set ariaLive(value: string): void;
        get ariaModal(): string;
        set ariaModal(value: string): void;
        get ariaMultiline(): string;
        set ariaMultiline(value: string): void;
        get ariaMultiSelectable(): string;
        set ariaMultiSelectable(value: string): void;
        get ariaOrientation(): string;
        set ariaOrientation(value: string): void;
        get ariaPlaceholder(): string;
        set ariaPlaceholder(value: string): void;
        get ariaPosInSet(): string;
        set ariaPosInSet(value: string): void;
        get ariaPressed(): string;
        set ariaPressed(value: string): void;
        get ariaReadOnly(): string;
        set ariaReadOnly(value: string): void;
        get ariaRequired(): string;
        set ariaRequired(value: string): void;
        get ariaRoleDescription(): string;
        set ariaRoleDescription(value: string): void;
        get ariaRowCount(): string;
        set ariaRowCount(value: string): void;
        get ariaRowIndex(): string;
        set ariaRowIndex(value: string): void;
        get ariaRowSpan(): string;
        set ariaRowSpan(value: string): void;
        get ariaSelected(): string;
        set ariaSelected(value: string): void;
        get ariaSetSize(): string;
        set ariaSetSize(value: string): void;
        get ariaSort(): string;
        set ariaSort(value: string): void;
        get ariaValueMax(): string;
        set ariaValueMax(value: string): void;
        get ariaValueMin(): string;
        set ariaValueMin(value: string): void;
        get ariaValueNow(): string;
        set ariaValueNow(value: string): void;
        get ariaValueText(): string;
        set ariaValueText(value: string): void;
        get assignedSlot(): PseudoHTMLSlotElement;
        get attributes(): PseudoNamedNodeMap;
        get baseURI(): string | Location;
        get childElementCount(): number;
        get childNodes(): PseudoNodeList | LinkedTreeList;
        get children(): PseudoHTMLCollection;
        get classList(): PseudoDOMTokenList;
        get className(): string;
        set className(className: string): void;
        get clientHeight(): number;
        get clientLeft(): number;
        get clientTop(): number;
        get clientWidth(): number;
        get firstChild(): PseudoNode;
        get firstElementChild(): PseudoElement;
        get id(): string;
        get innerHTML(): string;
        set innerHTML(html: string): void;
        get isConnected(): boolean;
        get lastChild(): PseudoNode;
        get lastElementChild(): PseudoElement;
        get localName(): string;
        get namespaceURI(): string;
        get nextElementSibling(): PseudoElement;
        get nextSibling(): PseudoNode;
        get nodeName(): string;
        get nodeType(): number;
        get nodeValue(): string;
        set nodeValue(value: string): void;
        get outerHTML(): string;
        set outerHTML(html: string): void;
        get ownerDocument(): PseudoDocument;
        get parentElement(): PseudoElement;
        get parentNode(): PseudoNode;
        get part(): PseudoDOMTokenList;
        set part(part: PseudoDOMTokenList): void;
        get prefix(): string;
        get previousElementSibling(): PseudoElement;
        get previousSibling(): PseudoNode;
        get scrollHeight(): number;
        get scrollLeft(): number;
        set scrollLeft(left: number): void;
        get scrollTop(): number;
        set scrollTop(top: number): void;
        get scrollWidth(): number;
        get shadowRoot(): PseudoShadowRoot;
        get slot(): string;
        set slot(slot: string): void;
        get tagName(): string;
        get textContent(): string;
        set textContent(text: string): void;
        addEventListener(
            type: string,
            callback: any,
            useCapture: boolean | listenerOptions,
        ): void;
        after(...nodes: (string | PseudoNode)[]): void;
        animate(
            keyframes: object[],
            options: {
                id: string;
                rangeEnd: string;
                rangeStart: string;
                timeline: string;
            },
        ): PseudoAnimation;
        append(...nodes: (string | PseudoNode)[]): void;
        appendChild(childNode: PseudoNode): PseudoNode;
        attachShadow(options: { mode: string }): PseudoShadowRoot;
        before(...nodes: (string | PseudoNode)[]): void;
        checkVisibility(): boolean;
        cloneNode(deep: boolean): PseudoNode;
        closest(selectors: string): PseudoElement;
        compareDocumentPosition(otherNode: PseudoNode): number;
        computedStyleMap(): { get: (property: string) => string };
        contains(otherNode: PseudoNode): boolean;
        dispatchEvent(event: PseudoEvent): boolean;
        getAnimations(): any[];
        getAttribute(attributeName: string): string;
        getAttributeNames(): string[];
        getAttributeNode(attributeName: string): PseudoAttr;
        getAttributeNodeNS(namespace: string, attributeName: string): PseudoAttr;
        getAttributeNS(namespace: string, attributeName: string): string;
        getBoundingClientRect(): {
            bottom: number;
            height: number;
            left: number;
            right: number;
            top: number;
            width: number;
            x: number;
            y: number;
        };
        getClientRects(): any[];
        getElementsByClassName(className: string): PseudoHTMLCollection;
        getElementsByTagName(tagName: string): PseudoHTMLCollection;
        getElementsByTagNameNS(
            namespace: string,
            tagName: string,
        ): PseudoHTMLCollection;
        getRootNode(options: { composed: boolean }): PseudoNode;
        hasAttribute(attributeName: string): boolean;
        hasAttributeNS(namespace: string, attributeName: string): boolean;
        hasAttributes(): boolean;
        hasChildNodes(): boolean;
        hasPointerCapture(pointerId: number): boolean;
        insertAdjacentElement(
            position: string,
            element: PseudoElement,
        ): PseudoElement;
        insertAdjacentHTML(position: string, text: string): void;
        insertAdjacentText(position: string, text: string): void;
        insertBefore(
            newNode: PseudoNode,
            referenceNode: PseudoNode,
        ): PseudoNode | PseudoDocumentFragment;
        isDefaultNamespace(namespaceURI: string): boolean;
        isEqualNode(otherNode: PseudoNode): boolean;
        isSameNode(otherNode: PseudoNode): boolean;
        lookupNamespaceURI(prefix: string): string;
        lookupPrefix(namespace: string): string;
        matches(selectors: string): boolean;
        normalize(): void;
        prepend(...nodes: (string | PseudoNode)[]): void;
        querySelector(selectors: string): PseudoElement;
        querySelectorAll(selectors: string): PseudoElement[];
        releasePointerCapture(pointerId: number): void;
        remove(): void;
        removeAttribute(attributeName: string): void;
        removeAttributeNode(attr: PseudoAttr): PseudoAttr;
        removeAttributeNS(namespace: string, attributeName: string): void;
        removeChild(child: PseudoNode): PseudoNode;
        removeEventListener(
            type: string,
            callback: Function,
            options?: boolean | listenerOptions,
        ): void;
        replaceChild(newChild: PseudoNode, oldChild: PseudoNode): PseudoNode;
        replaceChildren(...nodes: (string | PseudoNode)[]): void;
        replaceWith(...nodes: (string | PseudoNode)[]): void;
        requestFullscreen(): Promise<void>;
        requestPointerLock(): Promise<void>;
        scroll(x: number | { left?: number; top?: number }, y: number): void;
        scrollBy(x: number | { left?: number; top?: number }, y: number): void;
        scrollIntoView(): void;
        scrollTo(x: number | { left?: number; top?: number }, y: number): void;
        setAttribute(attributeName: string, attributeValue: string): void;
        setAttributeNode(attr: PseudoAttr): PseudoAttr;
        setAttributeNodeNS(attr: PseudoAttr): PseudoAttr;
        setAttributeNS(
            namespace: string,
            attributeName: string,
            attributeValue: string,
        ): void;
        setPointerCapture(pointerId: number): void;
        toggleAttribute(attributeName: string, force: boolean): boolean;
    }

    Hierarchy (View Summary)

    Index
    • get ariaAtomic(): string

      A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

      Returns string

    • set ariaAtomic(value: string): void

      A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

      Parameters

      • value: string

      Returns void

    • get ariaAutoComplete(): string

      A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.

      Returns string

    • set ariaAutoComplete(value: string): void

      A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.

      Parameters

      • value: string

      Returns void

    • get ariaBusy(): string

      A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.

      Returns string

    • set ariaBusy(value: string): void

      A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.

      Parameters

      • value: string

      Returns void

    • get ariaChecked(): string

      A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.

      Returns string

    • set ariaChecked(value: string): void

      A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.

      Parameters

      • value: string

      Returns void

    • get ariaColCount(): string

      A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.

      Returns string

    • set ariaColCount(value: string): void

      A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaColIndex(): string

      A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

      Returns string

    • set ariaColIndex(value: string): void

      A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaColSpan(): string

      A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

      Returns string

    • set ariaColSpan(value: string): void

      A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaCurrent(): string

      A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.

      Returns string

    • set ariaCurrent(value: string): void

      A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.

      Parameters

      • value: string

      Returns void

    • get ariaDescription(): string

      A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.

      Returns string

    • set ariaDescription(value: string): void

      A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.

      Parameters

      • value: string

      Returns void

    • get ariaDisabled(): string

      A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

      Returns string

    • set ariaDisabled(value: string): void

      A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

      Parameters

      • value: string

      Returns void

    • get ariaExpanded(): string

      A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.

      Returns string

    • set ariaExpanded(value: string): void

      A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.

      Parameters

      • value: string

      Returns void

    • get ariaHasPopup(): string

      A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

      Returns string

    • set ariaHasPopup(value: string): void

      A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

      Parameters

      • value: string

      Returns void

    • get ariaHidden(): string

      A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.

      Returns string

    • set ariaHidden(value: string): void

      A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.

      Parameters

      • value: string

      Returns void

    • get ariaKeyShortcuts(): string

      A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

      Returns string

    • set ariaKeyShortcuts(value: string): void

      A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

      Parameters

      • value: string

      Returns void

    • get ariaLabel(): string

      A string reflecting the aria-label attribute, which defines a string value that labels the current element.

      Returns string

    • set ariaLabel(value: string): void

      A string reflecting the aria-label attribute, which defines a string value that labels the current element.

      Parameters

      • value: string

      Returns void

    • get ariaLevel(): string

      A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.

      Returns string

    • set ariaLevel(value: string): void

      A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.

      Parameters

      • value: string

      Returns void

    • get ariaLive(): string

      A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

      Returns string

    • set ariaLive(value: string): void

      A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

      Parameters

      • value: string

      Returns void

    • get ariaModal(): string

      A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.

      Returns string

    • set ariaModal(value: string): void

      A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.

      Parameters

      • value: string

      Returns void

    • get ariaMultiline(): string

      A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.

      Returns string

    • set ariaMultiline(value: string): void

      A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.

      Parameters

      • value: string

      Returns void

    • get ariaMultiSelectable(): string

      A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.

      Returns string

    • set ariaMultiSelectable(value: string): void

      A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.

      Parameters

      • value: string

      Returns void

    • get ariaOrientation(): string

      A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

      Returns string

    • set ariaOrientation(value: string): void

      A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

      Parameters

      • value: string

      Returns void

    • get ariaPlaceholder(): string

      A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.

      Returns string

    • set ariaPlaceholder(value: string): void

      A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.

      Parameters

      • value: string

      Returns void

    • get ariaPosInSet(): string

      A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.

      Returns string

    • set ariaPosInSet(value: string): void

      A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.

      Parameters

      • value: string

      Returns void

    • get ariaPressed(): string

      A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.

      Returns string

    • set ariaPressed(value: string): void

      A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.

      Parameters

      • value: string

      Returns void

    • get ariaReadOnly(): string

      A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.

      Returns string

    • set ariaReadOnly(value: string): void

      A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.

      Parameters

      • value: string

      Returns void

    • get ariaRequired(): string

      A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.

      Returns string

    • set ariaRequired(value: string): void

      A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.

      Parameters

      • value: string

      Returns void

    • get ariaRoleDescription(): string

      A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.

      Returns string

    • set ariaRoleDescription(value: string): void

      A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.

      Parameters

      • value: string

      Returns void

    • get ariaRowCount(): string

      A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.

      Returns string

    • set ariaRowCount(value: string): void

      A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaRowIndex(): string

      A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

      Returns string

    • set ariaRowIndex(value: string): void

      A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaRowSpan(): string

      A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

      Returns string

    • set ariaRowSpan(value: string): void

      A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

      Parameters

      • value: string

      Returns void

    • get ariaSelected(): string

      A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.

      Returns string

    • set ariaSelected(value: string): void

      A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.

      Parameters

      • value: string

      Returns void

    • get ariaSetSize(): string

      A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.

      Returns string

    • set ariaSetSize(value: string): void

      A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.

      Parameters

      • value: string

      Returns void

    • get ariaSort(): string

      A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.

      Returns string

    • set ariaSort(value: string): void

      A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.

      Parameters

      • value: string

      Returns void

    • get ariaValueMax(): string

      A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.

      Returns string

    • set ariaValueMax(value: string): void

      A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.

      Parameters

      • value: string

      Returns void

    • get ariaValueMin(): string

      A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.

      Returns string

    • set ariaValueMin(value: string): void

      A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.

      Parameters

      • value: string

      Returns void

    • get ariaValueNow(): string

      A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.

      Returns string

    • set ariaValueNow(value: string): void

      A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.

      Parameters

      • value: string

      Returns void

    • get ariaValueText(): string

      A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.

      Returns string

    • set ariaValueText(value: string): void

      A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.

      Parameters

      • value: string

      Returns void

    • get baseURI(): string | Location

      Returns a string representing the base URL of the document containing the Node.

      Returns string | Location

    • get childNodes(): PseudoNodeList | LinkedTreeList

      Returns a live NodeList containing all the children of this node (including elements, text and comments). NodeList being live means that if the children of the Node change, the NodeList object is automatically updated.

      Returns PseudoNodeList | LinkedTreeList

    • get isConnected(): boolean

      A boolean indicating whether or not the Node is connected (directly or indirectly) to the context object, e.g. the Document object in the case of the normal DOM, or the ShadowRoot in the case of a shadow DOM.

      Returns boolean

    • get nodeName(): string

      Returns a string containing the name of the Node. The structure of the name will differ with the node type. E.g. An HTMLElement will contain the name of the corresponding tag, like 'audio' for an HTMLAudioElement, a Text node will have the '#text' string, or a Document node will have the '#document' string.

      Returns string

    • get nodeType(): number

      Returns an unsigned short representing the type of the node. Possible values are:


      | Name | Value | |---------------------------------------- | ELEMENT_NODE | 1 | | ATTRIBUTE_NODE | 2 | | TEXT_NODE | 3 | | CDATA_SECTION_NODE | 4 | | PROCESSING_INSTRUCTION_NODE | 7 | | COMMENT_NODE | 8 | | DOCUMENT_NODE | 9 | | DOCUMENT_TYPE_NODE | 10 | | DOCUMENT_FRAGMENT_NODE | 11 |

      Returns number

    • get nodeValue(): string

      Returns the value of the current node.

      Returns string

    • set nodeValue(value: string): void

      Sets the value of the current node.

      Parameters

      • value: string

      Returns void

    • get outerHTML(): string

      A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.

      Returns string

    • set outerHTML(html: string): void

      A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.

      Parameters

      • html: string

      Returns void

    • get parentNode(): PseudoNode

      Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.

      Returns PseudoNode

    • get prefix(): string

      A string representing the namespace prefix of the element, or null if no prefix is specified. There is no real namespace parsing here, so this is always null.

      Returns string

    • get scrollTop(): number

      A number representing number of pixels the top of the element is scrolled vertically.

      Returns number

    • set scrollTop(top: number): void

      A number representing number of pixels the top of the element is scrolled vertically.

      Parameters

      • top: number

      Returns void

    • get textContent(): string

      Returns the textual content of an element and all its descendants.

      Returns string

    • set textContent(text: string): void

      Sets the textual content of an element and all its descendants.

      Parameters

      • text: string

      Returns void

    • Inserts a set of Node objects or strings in the children list of the Element's parent, just after the Element. Does nothing when the element has no parent.

      Parameters

      Returns void

    • A shortcut method to create and run an animation on an element. Returns the created Animation object instance.

      Parameters

      • keyframes: object[]
      • options: { id: string; rangeEnd: string; rangeStart: string; timeline: string }

      Returns PseudoAnimation

    • Inserts a set of Node objects or strings in the children list of the Element's parent, just before the Element. Does nothing when the element has no parent.

      Parameters

      Returns void

    • Returns whether an element is expected to be visible or not. Settable directly (boundingClientRect / isVisible / etc.) rather than really computed - there is no layout engine here.

      Returns boolean

    • Returns the Element which is the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter.

      Parameters

      • selectors: string

        A CSS selector

      Returns PseudoElement

    • Returns a read-only view of the element's own inline style declarations (there is no CSS cascade here, so this is not a real computed style).

      Returns { get: (property: string) => string }

    • Returns an array of Animation objects currently active on the element. Settable directly (animations) - there is no animation engine here.

      Returns any[]

    • Retrieves the value of the named attribute from the current node and returns it as a string.

      Parameters

      • attributeName: string

      Returns string

    • Retrieves the node representation of the attribute with the specified name and namespace, from the current node and returns it as an Attr. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getAttributeNode.

      Parameters

      • namespace: string

        Ignored

      • attributeName: string

      Returns PseudoAttr

    • Retrieves the value of the attribute with the specified namespace and name from the current node and returns it as a string. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getAttribute.

      Parameters

      • namespace: string

        Ignored

      • attributeName: string

      Returns string

    • Returns the size of an element and its position relative to the viewport. Settable directly (boundingClientRect) rather than really computed - there is no layout engine here.

      Returns {
          bottom: number;
          height: number;
          left: number;
          right: number;
          top: number;
          width: number;
          x: number;
          y: number;
      }

    • Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client. Settable directly (clientRects) rather than really computed - there is no layout engine here.

      Returns any[]

    • Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getElementsByTagName.

      Parameters

      • namespace: string

        Ignored

      • tagName: string

      Returns PseudoHTMLCollection

    • Returns a boolean value indicating if the element has the specified attribute or not.

      Parameters

      • attributeName: string

      Returns boolean

    • Returns a boolean value indicating if the element has the specified attribute, in the specified namespace, or not. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like hasAttribute.

      Parameters

      • namespace: string

        Ignored

      • attributeName: string

      Returns boolean

    • Returns a boolean value indicating if the element has one or more HTML attributes present.

      Returns boolean

    • Indicates whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.

      Parameters

      • pointerId: number

      Returns boolean

    • Inserts a given element at a given position relative to the element it is invoked upon.

      Parameters

      • position: string

        beforebegin, afterbegin, beforeend or afterend

      • element: PseudoElement

        The element to insert

      Returns PseudoElement

      The inserted element, or null when the position needs a parent this element does not have

    • Parses the text as HTML and inserts the resulting nodes into the tree in the position given.

      Parameters

      • position: string

        beforebegin, afterbegin, beforeend or afterend

      • text: string

        The markup to parse

      Returns void

      When the position is not one of the four above

    • Inserts a given text at a given position relative to the element it is invoked upon.

      Parameters

      • position: string

        beforebegin, afterbegin, beforeend or afterend

      • text: string

        The text to insert

      Returns void

    • Accepts a namespace URI as an argument and returns a boolean value with a value of true if the namespace is the default namespace on the given node or false if not.

      Parameters

      • namespaceURI: string

      Returns boolean

    • Accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace.

      Parameters

      • prefix: string

      Returns string

    • Returns a string containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the result is implementation-dependent.

      Parameters

      • namespace: string

      Returns string

    • Returns a boolean value indicating whether or not the element would be selected by the specified selector string.

      Parameters

      • selectors: string

        A CSS selector

      Returns boolean

    • Releases (stops) pointer capture that was previously set for a specific pointer event.

      Parameters

      • pointerId: number

      Returns void

    • Removes the named attribute from the current node.

      Parameters

      • attributeName: string

      Returns void

    • Removes the attribute with the specified name and namespace, from the current node. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like removeAttribute.

      Parameters

      • namespace: string

        Ignored

      • attributeName: string

      Returns void

    • Replaces the element in the children list of its parent with a set of Node objects or strings. Does nothing when it has no parent.

      Parameters

      Returns void

    • Asynchronously asks the browser to make the element fullscreen. There is no real fullscreen here, so this just resolves, like a browser granting the request would.

      Returns Promise<void>

    • Allows to asynchronously ask for the pointer to be locked on the given element. There is no real pointer lock here, so this just resolves, like a browser granting the request would.

      Returns Promise<void>

    • Scrolls to a particular set of coordinates inside a given element. There is no real scrollable viewport here: this just sets scrollLeft / scrollTop.

      Parameters

      • x: number | { left?: number; top?: number }
      • y: number

      Returns void

    • Scrolls an element by the given amount, relative to the current position.

      Parameters

      • x: number | { left?: number; top?: number }
      • y: number

      Returns void

    • Scrolls an ancestor until the element gets into view. There is no real viewport here for that to mean anything, so this does nothing.

      Returns void

    • Scrolls to a particular set of coordinates inside a given element. An alias for scroll.

      Parameters

      • x: number | { left?: number; top?: number }
      • y: number

      Returns void

    • Sets the value of a named attribute of the current node.

      Parameters

      • attributeName: string
      • attributeValue: string

      Returns void

    • Sets the value of the attribute with the specified name and namespace, from the current node. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like setAttribute.

      Parameters

      • namespace: string

        Ignored

      • attributeName: string
      • attributeValue: string

      Returns void

    • Designates a specific element as the capture target of future pointer events.

      Parameters

      • pointerId: number

      Returns void

    • Toggles a boolean attribute, removing it if it is present and adding it if it is not present, on the specified element - unless force says which of those to do instead. Returns whether the attribute is present afterwards.

      Parameters

      • attributeName: string
      • force: boolean

      Returns boolean