Flyweight DOM - v2.3.0
    Preparing search index...

    Interface ChildNode

    The node that can be a child of another node.

    Node on MDN

    interface ChildNode {
        firstChild: null | ChildNode;
        lastChild: null | ChildNode;
        nextElementSibling: null | Element;
        nextSibling: null | ChildNode;
        nodeName: string;
        nodeType: number;
        parentNode: null | ParentNode;
        previousElementSibling: null | Element;
        previousSibling: null | ChildNode;
        get childNodes(): NodeList;
        get nodeValue(): null | string;
        set nodeValue(value: null | string): void;
        get parentElement(): null | Element;
        get textContent(): null | string;
        set textContent(value: null | string): void;
        after(...nodes: (string | Node)[]): this;
        appendChild<T extends Node>(node: T): T;
        before(...nodes: (string | Node)[]): this;
        cloneNode(deep?: boolean): ChildNode;
        contains(node: undefined | null | Node): boolean;
        hasChildNodes(): boolean;
        insertBefore<T extends Node>(node: T, child: undefined | null | Node): T;
        isEqualNode(otherNode: undefined | null | Node): boolean;
        remove(): this;
        removeChild<T extends Node>(child: T): T;
        replaceChild<T extends Node>(node: Node, child: T): T;
        replaceWith(...nodes: (string | Node)[]): this;
    }

    Hierarchy (View Summary)

    Index

    Properties

    firstChild: null | ChildNode = null

    Node.firstChild on MDN

    lastChild: null | ChildNode = null

    Node.lastChild on MDN

    nextElementSibling: null | Element
    nextSibling: null | ChildNode = null

    Node.nextSibling on MDN

    nodeName: string

    Node.nodeName on MDN

    nodeType: number

    Node.nodeType on MDN

    parentNode: null | ParentNode = null

    Node.parentNode on MDN

    previousElementSibling: null | Element
    previousSibling: null | ChildNode = null

    Accessors

    • get nodeValue(): null | string

      Returns null | string

      Node.nodeValue on MDN

    • set nodeValue(value: null | string): void

      Parameters

      • value: null | string

      Returns void

    Methods

    • Parameters

      • ...nodes: (string | Node)[]

      Returns this

      Element.after on MDN

    • Parameters

      • ...nodes: (string | Node)[]

      Returns this

      Element.before on MDN