Chartbreaker
    Preparing search index...

    Interface XMLDocument

    The XMLDocument interface represents an XML document.

    MDN Reference

    interface XMLDocument {
        activeElement: null | Element;
        adoptedStyleSheets: CSSStyleSheet[];
        alinkColor: string;
        all: HTMLAllCollection;
        anchors: HTMLCollectionOf<HTMLAnchorElement>;
        applets: HTMLCollection;
        ATTRIBUTE_NODE: 2;
        baseURI: string;
        bgColor: string;
        body: HTMLElement;
        CDATA_SECTION_NODE: 4;
        characterSet: string;
        charset: string;
        childElementCount: number;
        childNodes: NodeListOf<ChildNode>;
        children: HTMLCollection;
        COMMENT_NODE: 8;
        compatMode: string;
        contentType: string;
        cookie: string;
        currentScript: null | HTMLOrSVGScriptElement;
        defaultView: null | Window & typeof globalThis;
        designMode: string;
        dir: string;
        doctype: null | DocumentType;
        DOCUMENT_FRAGMENT_NODE: 11;
        DOCUMENT_NODE: 9;
        DOCUMENT_POSITION_CONTAINED_BY: 16;
        DOCUMENT_POSITION_CONTAINS: 8;
        DOCUMENT_POSITION_DISCONNECTED: 1;
        DOCUMENT_POSITION_FOLLOWING: 4;
        DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
        DOCUMENT_POSITION_PRECEDING: 2;
        DOCUMENT_TYPE_NODE: 10;
        documentElement: HTMLElement;
        documentURI: string;
        domain: string;
        ELEMENT_NODE: 1;
        embeds: HTMLCollectionOf<HTMLEmbedElement>;
        ENTITY_NODE: 6;
        ENTITY_REFERENCE_NODE: 5;
        fgColor: string;
        firstChild: null | ChildNode;
        firstElementChild: null | Element;
        fonts: FontFaceSet;
        forms: HTMLCollectionOf<HTMLFormElement>;
        fragmentDirective: FragmentDirective;
        fullscreen: boolean;
        fullscreenElement: null | Element;
        fullscreenEnabled: boolean;
        head: HTMLHeadElement;
        hidden: boolean;
        images: HTMLCollectionOf<HTMLImageElement>;
        implementation: DOMImplementation;
        inputEncoding: string;
        isConnected: boolean;
        lastChild: null | ChildNode;
        lastElementChild: null | Element;
        lastModified: string;
        linkColor: string;
        links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
        nextSibling: null | ChildNode;
        nodeName: string;
        nodeType: number;
        nodeValue: null | string;
        NOTATION_NODE: 12;
        onabort: null | ((this: GlobalEventHandlers, ev: UIEvent) => any);
        onanimationcancel:
            | null
            | ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
        onanimationend:
            | null
            | ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
        onanimationiteration:
            | null
            | ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
        onanimationstart:
            | null
            | ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
        onauxclick: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onbeforeinput: null | ((this: GlobalEventHandlers, ev: InputEvent) => any);
        onbeforematch: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onbeforetoggle:
            | null
            | ((this: GlobalEventHandlers, ev: ToggleEvent) => any);
        onblur: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any);
        oncancel: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncanplay: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncanplaythrough: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onchange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onclick: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onclose: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncontextlost: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncontextmenu:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        oncontextrestored: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncopy: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
        oncuechange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oncut: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
        ondblclick: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        ondrag: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondragend: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondragenter: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondragleave: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondragover: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondragstart: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondrop: null | ((this: GlobalEventHandlers, ev: DragEvent) => any);
        ondurationchange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onemptied: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onended: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onerror: OnErrorEventHandler;
        onfocus: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any);
        onformdata: null | ((this: GlobalEventHandlers, ev: FormDataEvent) => any);
        onfullscreenchange: null | ((this: Document, ev: Event) => any);
        onfullscreenerror: null | ((this: Document, ev: Event) => any);
        ongotpointercapture:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        oninput: null | ((this: GlobalEventHandlers, ev: Event) => any);
        oninvalid: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onkeydown: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
        onkeypress: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
        onkeyup: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
        onload: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onloadeddata: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onloadedmetadata: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onloadstart: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onlostpointercapture:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onmousedown: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmouseenter: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmouseleave: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmousemove: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmouseout: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmouseover: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onmouseup: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any);
        onpaste: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
        onpause: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onplay: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onplaying: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onpointercancel:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerdown:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerenter:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerleave:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerlockchange: null | ((this: Document, ev: Event) => any);
        onpointerlockerror: null | ((this: Document, ev: Event) => any);
        onpointermove:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerout: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerover:
            | null
            | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onpointerrawupdate: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onpointerup: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any);
        onprogress: null | ((this: GlobalEventHandlers, ev: ProgressEvent) => any);
        onratechange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onreadystatechange: null | ((this: Document, ev: Event) => any);
        onreset: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onresize: null | ((this: GlobalEventHandlers, ev: UIEvent) => any);
        onscroll: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onscrollend: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onsecuritypolicyviolation:
            | null
            | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any);
        onseeked: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onseeking: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onselect: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onselectionchange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onselectstart: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onslotchange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onstalled: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onsubmit: null | ((this: GlobalEventHandlers, ev: SubmitEvent) => any);
        onsuspend: null | ((this: GlobalEventHandlers, ev: Event) => any);
        ontimeupdate: null | ((this: GlobalEventHandlers, ev: Event) => any);
        ontoggle: null | ((this: GlobalEventHandlers, ev: ToggleEvent) => any);
        ontouchcancel?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any);
        ontouchend?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any);
        ontouchmove?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any);
        ontouchstart?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any);
        ontransitioncancel:
            | null
            | ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
        ontransitionend:
            | null
            | ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
        ontransitionrun:
            | null
            | ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
        ontransitionstart:
            | null
            | ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
        onvisibilitychange: null | ((this: Document, ev: Event) => any);
        onvolumechange: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onwaiting: null | ((this: GlobalEventHandlers, ev: Event) => any);
        onwebkitanimationend:
            | null
            | ((this: GlobalEventHandlers, ev: Event) => any);
        onwebkitanimationiteration:
            | null
            | ((this: GlobalEventHandlers, ev: Event) => any);
        onwebkitanimationstart:
            | null
            | ((this: GlobalEventHandlers, ev: Event) => any);
        onwebkittransitionend:
            | null
            | ((this: GlobalEventHandlers, ev: Event) => any);
        onwheel: null | ((this: GlobalEventHandlers, ev: WheelEvent) => any);
        ownerDocument: null;
        parentElement: null | HTMLElement;
        parentNode: null | ParentNode;
        pictureInPictureElement: null | Element;
        pictureInPictureEnabled: boolean;
        plugins: HTMLCollectionOf<HTMLEmbedElement>;
        pointerLockElement: null | Element;
        previousSibling: null | ChildNode;
        PROCESSING_INSTRUCTION_NODE: 7;
        readyState: DocumentReadyState;
        referrer: string;
        rootElement: null | SVGSVGElement;
        scripts: HTMLCollectionOf<HTMLScriptElement>;
        scrollingElement: null | Element;
        styleSheets: StyleSheetList;
        TEXT_NODE: 3;
        timeline: DocumentTimeline;
        title: string;
        URL: string;
        visibilityState: DocumentVisibilityState;
        vlinkColor: string;
        get location(): Location;
        set location(href: string): void;
        get textContent(): null;
        addEventListener<K extends keyof DocumentEventMap>(
            type: K,
            listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        adoptNode<T extends Node>(node: T): T;
        append(...nodes: (string | Node)[]): void;
        appendChild<T extends Node>(node: T): T;
        captureEvents(): void;
        caretPositionFromPoint(
            x: number,
            y: number,
            options?: CaretPositionFromPointOptions,
        ): null | CaretPosition;
        caretRangeFromPoint(x: number, y: number): null | Range;
        clear(): void;
        cloneNode(subtree?: boolean): Node;
        close(): void;
        compareDocumentPosition(other: Node): number;
        contains(other: null | Node): boolean;
        createAttribute(localName: string): Attr;
        createAttributeNS(namespace: null | string, qualifiedName: string): Attr;
        createCDATASection(data: string): CDATASection;
        createComment(data: string): Comment;
        createDocumentFragment(): DocumentFragment;
        createElement<K extends keyof HTMLElementTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementTagNameMap[K];
        createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementDeprecatedTagNameMap[K];
        createElement(
            tagName: string,
            options?: ElementCreationOptions,
        ): HTMLElement;
        createElementNS(
            namespaceURI: "http://www.w3.org/1999/xhtml",
            qualifiedName: string,
        ): HTMLElement;
        createElementNS<K extends keyof SVGElementTagNameMap>(
            namespaceURI: "http://www.w3.org/2000/svg",
            qualifiedName: K,
        ): SVGElementTagNameMap[K];
        createElementNS(
            namespaceURI: "http://www.w3.org/2000/svg",
            qualifiedName: string,
        ): SVGElement;
        createElementNS<K extends keyof MathMLElementTagNameMap>(
            namespaceURI: "http://www.w3.org/1998/Math/MathML",
            qualifiedName: K,
        ): MathMLElementTagNameMap[K];
        createElementNS(
            namespaceURI: "http://www.w3.org/1998/Math/MathML",
            qualifiedName: string,
        ): MathMLElement;
        createElementNS(
            namespaceURI: null | string,
            qualifiedName: string,
            options?: ElementCreationOptions,
        ): Element;
        createElementNS(
            namespace: null | string,
            qualifiedName: string,
            options?: string | ElementCreationOptions,
        ): Element;
        createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
        createEvent(
            eventInterface: "AnimationPlaybackEvent",
        ): AnimationPlaybackEvent;
        createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
        createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
        createEvent(eventInterface: "BlobEvent"): BlobEvent;
        createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
        createEvent(eventInterface: "CloseEvent"): CloseEvent;
        createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
        createEvent(
            eventInterface: "ContentVisibilityAutoStateChangeEvent",
        ): ContentVisibilityAutoStateChangeEvent;
        createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
        createEvent(eventInterface: "CustomEvent"): CustomEvent;
        createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
        createEvent(
            eventInterface: "DeviceOrientationEvent",
        ): DeviceOrientationEvent;
        createEvent(eventInterface: "DragEvent"): DragEvent;
        createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
        createEvent(eventInterface: "Event"): Event;
        createEvent(eventInterface: "Events"): Event;
        createEvent(eventInterface: "FocusEvent"): FocusEvent;
        createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
        createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
        createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
        createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
        createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
        createEvent(eventInterface: "InputEvent"): InputEvent;
        createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
        createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
        createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
        createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
        createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
        createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
        createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
        createEvent(eventInterface: "MessageEvent"): MessageEvent;
        createEvent(eventInterface: "MouseEvent"): MouseEvent;
        createEvent(eventInterface: "MouseEvents"): MouseEvent;
        createEvent(
            eventInterface: "OfflineAudioCompletionEvent",
        ): OfflineAudioCompletionEvent;
        createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
        createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
        createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
        createEvent(
            eventInterface: "PaymentMethodChangeEvent",
        ): PaymentMethodChangeEvent;
        createEvent(
            eventInterface: "PaymentRequestUpdateEvent",
        ): PaymentRequestUpdateEvent;
        createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
        createEvent(eventInterface: "PointerEvent"): PointerEvent;
        createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
        createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
        createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
        createEvent(
            eventInterface: "RTCDTMFToneChangeEvent",
        ): RTCDTMFToneChangeEvent;
        createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
        createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
        createEvent(
            eventInterface: "RTCPeerConnectionIceErrorEvent",
        ): RTCPeerConnectionIceErrorEvent;
        createEvent(
            eventInterface: "RTCPeerConnectionIceEvent",
        ): RTCPeerConnectionIceEvent;
        createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
        createEvent(
            eventInterface: "SecurityPolicyViolationEvent",
        ): SecurityPolicyViolationEvent;
        createEvent(
            eventInterface: "SpeechSynthesisErrorEvent",
        ): SpeechSynthesisErrorEvent;
        createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
        createEvent(eventInterface: "StorageEvent"): StorageEvent;
        createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
        createEvent(eventInterface: "TextEvent"): TextEvent;
        createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
        createEvent(eventInterface: "TouchEvent"): TouchEvent;
        createEvent(eventInterface: "TrackEvent"): TrackEvent;
        createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
        createEvent(eventInterface: "UIEvent"): UIEvent;
        createEvent(eventInterface: "UIEvents"): UIEvent;
        createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
        createEvent(eventInterface: "WheelEvent"): WheelEvent;
        createEvent(eventInterface: string): Event;
        createExpression(
            expression: string,
            resolver?: null | XPathNSResolver,
        ): XPathExpression;
        createNodeIterator(
            root: Node,
            whatToShow?: number,
            filter?: null | NodeFilter,
        ): NodeIterator;
        createNSResolver(nodeResolver: Node): Node;
        createProcessingInstruction(
            target: string,
            data: string,
        ): ProcessingInstruction;
        createRange(): Range;
        createTextNode(data: string): Text;
        createTreeWalker(
            root: Node,
            whatToShow?: number,
            filter?: null | NodeFilter,
        ): TreeWalker;
        dispatchEvent(event: Event): boolean;
        elementFromPoint(x: number, y: number): null | Element;
        elementsFromPoint(x: number, y: number): Element[];
        evaluate(
            expression: string,
            contextNode: Node,
            resolver?: null | XPathNSResolver,
            type?: number,
            result?: null | XPathResult,
        ): XPathResult;
        execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
        exitFullscreen(): Promise<void>;
        exitPictureInPicture(): Promise<void>;
        exitPointerLock(): void;
        getAnimations(): Animation[];
        getElementById(elementId: string): null | HTMLElement;
        getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
        getElementsByName(elementName: string): NodeListOf<HTMLElement>;
        getElementsByTagName<K extends keyof HTMLElementTagNameMap>(
            qualifiedName: K,
        ): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
        getElementsByTagName<K extends keyof SVGElementTagNameMap>(
            qualifiedName: K,
        ): HTMLCollectionOf<SVGElementTagNameMap[K]>;
        getElementsByTagName<K extends keyof MathMLElementTagNameMap>(
            qualifiedName: K,
        ): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
        getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(
            qualifiedName: K,
        ): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
        getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
        getElementsByTagNameNS(
            namespaceURI: "http://www.w3.org/1999/xhtml",
            localName: string,
        ): HTMLCollectionOf<HTMLElement>;
        getElementsByTagNameNS(
            namespaceURI: "http://www.w3.org/2000/svg",
            localName: string,
        ): HTMLCollectionOf<SVGElement>;
        getElementsByTagNameNS(
            namespaceURI: "http://www.w3.org/1998/Math/MathML",
            localName: string,
        ): HTMLCollectionOf<MathMLElement>;
        getElementsByTagNameNS(
            namespace: null | string,
            localName: string,
        ): HTMLCollectionOf<Element>;
        getRootNode(options?: GetRootNodeOptions): Node;
        getSelection(): null | Selection;
        hasChildNodes(): boolean;
        hasFocus(): boolean;
        hasStorageAccess(): Promise<boolean>;
        importNode<T extends Node>(
            node: T,
            options?: boolean | ImportNodeOptions,
        ): T;
        insertBefore<T extends Node>(node: T, child: null | Node): T;
        isDefaultNamespace(namespace: null | string): boolean;
        isEqualNode(otherNode: null | Node): boolean;
        isSameNode(otherNode: null | Node): boolean;
        lookupNamespaceURI(prefix: null | string): null | string;
        lookupPrefix(namespace: null | string): null | string;
        normalize(): void;
        open(unused1?: string, unused2?: string): Document;
        open(url: string | URL, name: string, features: string): null | Window;
        prepend(...nodes: (string | Node)[]): void;
        queryCommandEnabled(commandId: string): boolean;
        queryCommandIndeterm(commandId: string): boolean;
        queryCommandState(commandId: string): boolean;
        queryCommandSupported(commandId: string): boolean;
        queryCommandValue(commandId: string): string;
        querySelector<K extends keyof HTMLElementTagNameMap>(
            selectors: K,
        ): null | HTMLElementTagNameMap[K];
        querySelector<K extends keyof SVGElementTagNameMap>(
            selectors: K,
        ): null | SVGElementTagNameMap[K];
        querySelector<K extends keyof MathMLElementTagNameMap>(
            selectors: K,
        ): null | MathMLElementTagNameMap[K];
        querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(
            selectors: K,
        ): null | HTMLElementDeprecatedTagNameMap[K];
        querySelector<E extends Element = Element>(selectors: string): null | E;
        querySelectorAll<K extends keyof HTMLElementTagNameMap>(
            selectors: K,
        ): NodeListOf<HTMLElementTagNameMap[K]>;
        querySelectorAll<K extends keyof SVGElementTagNameMap>(
            selectors: K,
        ): NodeListOf<SVGElementTagNameMap[K]>;
        querySelectorAll<K extends keyof MathMLElementTagNameMap>(
            selectors: K,
        ): NodeListOf<MathMLElementTagNameMap[K]>;
        querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(
            selectors: K,
        ): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
        querySelectorAll<E extends Element = Element>(
            selectors: string,
        ): NodeListOf<E>;
        releaseEvents(): void;
        removeChild<T extends Node>(child: T): T;
        removeEventListener<K extends keyof DocumentEventMap>(
            type: K,
            listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        replaceChild<T extends Node>(node: Node, child: T): T;
        replaceChildren(...nodes: (string | Node)[]): void;
        requestStorageAccess(): Promise<void>;
        startViewTransition(
            callbackOptions?:
                | ViewTransitionUpdateCallback
                | StartViewTransitionOptions,
        ): ViewTransition;
        write(...text: string[]): void;
        writeln(...text: string[]): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    activeElement adoptedStyleSheets alinkColor all anchors applets ATTRIBUTE_NODE baseURI bgColor body CDATA_SECTION_NODE characterSet charset childElementCount childNodes children COMMENT_NODE compatMode contentType cookie currentScript defaultView designMode dir doctype DOCUMENT_FRAGMENT_NODE DOCUMENT_NODE DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC DOCUMENT_POSITION_PRECEDING DOCUMENT_TYPE_NODE documentElement documentURI domain ELEMENT_NODE embeds ENTITY_NODE ENTITY_REFERENCE_NODE fgColor firstChild firstElementChild fonts forms fragmentDirective fullscreen fullscreenElement fullscreenEnabled head hidden images implementation inputEncoding isConnected lastChild lastElementChild lastModified linkColor links nextSibling nodeName nodeType nodeValue NOTATION_NODE onabort onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforematch onbeforetoggle onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextlost oncontextmenu oncontextrestored oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata onfullscreenchange onfullscreenerror ongotpointercapture oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointerlockchange onpointerlockerror onpointermove onpointerout onpointerover onpointerrawupdate onpointerup onprogress onratechange onreadystatechange onreset onresize onscroll onscrollend onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onsubmit onsuspend ontimeupdate ontoggle ontouchcancel? ontouchend? ontouchmove? ontouchstart? ontransitioncancel ontransitionend ontransitionrun ontransitionstart onvisibilitychange onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel ownerDocument parentElement parentNode pictureInPictureElement pictureInPictureEnabled plugins pointerLockElement previousSibling PROCESSING_INSTRUCTION_NODE readyState referrer rootElement scripts scrollingElement styleSheets TEXT_NODE timeline title URL visibilityState vlinkColor

    Accessors

    Methods

    Properties

    activeElement: null | Element

    Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.

    For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.

    Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.

    MDN Reference

    adoptedStyleSheets: CSSStyleSheet[]
    alinkColor: string

    Returns or sets the color of an active link in the document body.

    MDN Reference

    all: HTMLAllCollection

    The Document interface's read-only all property returns an HTMLAllCollection rooted at the document node.

    MDN Reference

    anchors: HTMLCollectionOf<HTMLAnchorElement>

    The anchors read-only property of the An HTMLCollection.

    MDN Reference

    The applets property of the Document returns an empty HTMLCollection.

    MDN Reference

    ATTRIBUTE_NODE: 2
    baseURI: string

    The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.

    MDN Reference

    bgColor: string

    The deprecated bgColor property gets or sets the background color of the current document.

    MDN Reference

    The Document.body property represents the null if no such element exists.

    MDN Reference

    CDATA_SECTION_NODE: 4

    node is a CDATASection node.

    characterSet: string

    The Document.characterSet read-only property returns the character encoding of the document that it's currently rendered with.

    MDN Reference

    charset: string

    This is a legacy alias of characterSet.

    MDN Reference

    childElementCount: number
    childNodes: NodeListOf<ChildNode>

    The read-only childNodes property of the Node interface returns a live the first child node is assigned index 0.

    MDN Reference

    children: HTMLCollection

    Returns the child elements.

    MDN Reference

    COMMENT_NODE: 8

    node is a Comment node.

    compatMode: string

    The Document.compatMode read-only property indicates whether the document is rendered in Quirks mode or Standards mode.

    MDN Reference

    contentType: string

    The Document.contentType read-only property returns the MIME type that the document is being rendered as.

    MDN Reference

    cookie: string

    The Document property cookie lets you read and write cookies associated with the document.

    MDN Reference

    currentScript: null | HTMLOrSVGScriptElement

    The Document.currentScript property returns the script element whose script is currently being processed and isn't a JavaScript module.

    MDN Reference

    defaultView: null | Window & typeof globalThis

    In browsers, document.defaultView returns the This property is read-only.

    MDN Reference

    designMode: string

    document.designMode controls whether the entire document is editable.

    MDN Reference

    dir: string

    The Document.dir property is a string representing the directionality of the text of the document, whether left to right (default) or right to left.

    MDN Reference

    doctype: null | DocumentType

    The doctype read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document.

    MDN Reference

    DOCUMENT_FRAGMENT_NODE: 11

    node is a DocumentFragment node.

    DOCUMENT_NODE: 9

    node is a document.

    DOCUMENT_POSITION_CONTAINED_BY: 16

    Set when other is a descendant of node.

    DOCUMENT_POSITION_CONTAINS: 8

    Set when other is an ancestor of node.

    DOCUMENT_POSITION_DISCONNECTED: 1

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

    DOCUMENT_POSITION_FOLLOWING: 4

    Set when other is following node.

    DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
    DOCUMENT_POSITION_PRECEDING: 2

    Set when other is preceding node.

    DOCUMENT_TYPE_NODE: 10

    node is a doctype.

    documentElement: HTMLElement

    The documentElement read-only property of the Document interface returns the example, the html element for HTML documents).

    MDN Reference

    documentURI: string

    The documentURI read-only property of the A string.

    MDN Reference

    domain: string

    The domain property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy.

    MDN Reference

    ELEMENT_NODE: 1

    node is an element.

    embeds: HTMLCollectionOf<HTMLEmbedElement>

    The embeds read-only property of the An HTMLCollection.

    MDN Reference

    ENTITY_NODE: 6
    ENTITY_REFERENCE_NODE: 5
    fgColor: string

    fgColor gets/sets the foreground color, or text color, of the current document.

    MDN Reference

    firstChild: null | ChildNode

    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.

    MDN Reference

    firstElementChild: null | Element

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

    MDN Reference

    fonts: FontFaceSet
    forms: HTMLCollectionOf<HTMLFormElement>

    The forms read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document.

    MDN Reference

    fragmentDirective: FragmentDirective

    The fragmentDirective read-only property of the Document interface returns the FragmentDirective for the current document.

    MDN Reference

    fullscreen: boolean

    The obsolete Document interface's fullscreen read-only property reports whether or not the document is currently displaying content in fullscreen mode.

    MDN Reference

    fullscreenElement: null | Element

    Returns document's fullscreen element.

    MDN Reference

    fullscreenEnabled: boolean

    The read-only fullscreenEnabled property on the Document interface indicates whether or not fullscreen mode is available.

    MDN Reference

    The head read-only property of the Document interface returns the head element of the current document.

    MDN Reference

    hidden: boolean

    The Document.hidden read-only property returns a Boolean value indicating if the page is considered hidden or not.

    MDN Reference

    images: HTMLCollectionOf<HTMLImageElement>

    The images read-only property of the Document interface returns a collection of the images in the current HTML document.

    MDN Reference

    implementation: DOMImplementation

    The Document.implementation property returns a A DOMImplementation object.

    MDN Reference

    inputEncoding: string

    This is a legacy alias of characterSet.

    MDN Reference

    isConnected: boolean

    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.

    MDN Reference

    lastChild: null | ChildNode

    The read-only lastChild property of the Node interface returns the last child of the node, or null if there are no child nodes.

    MDN Reference

    lastElementChild: null | Element

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

    MDN Reference

    lastModified: string

    The lastModified property of the Document interface returns a string containing the date and local time on which the current document was last modified.

    MDN Reference

    linkColor: string

    The Document.linkColor property gets/sets the color of links within the document.

    MDN Reference

    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

    The links read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute.

    MDN Reference

    nextSibling: null | ChildNode

    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.

    MDN Reference

    nodeName: string

    The read-only nodeName property of Node returns the name of the current node as a string.

    MDN Reference

    nodeType: number

    The read-only nodeType property of a Node interface is an integer that identifies what the node is.

    MDN Reference

    nodeValue: null | string

    The nodeValue property of the Node interface returns or sets the value of the current node.

    MDN Reference

    NOTATION_NODE: 12
    onabort: null | ((this: GlobalEventHandlers, ev: UIEvent) => any)
    onanimationcancel:
        | null
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    onanimationend: null | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    onanimationiteration:
        | null
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    onanimationstart:
        | null
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    onauxclick: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onbeforeinput: null | ((this: GlobalEventHandlers, ev: InputEvent) => any)
    onbeforematch: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onbeforetoggle: null | ((this: GlobalEventHandlers, ev: ToggleEvent) => any)
    onblur: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any)
    oncancel: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncanplay: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncanplaythrough: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onclick: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onclose: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncontextlost: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncontextmenu: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    oncontextrestored: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncopy: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any)
    oncuechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oncut: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any)
    ondblclick: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    ondrag: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondragend: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondragenter: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondragleave: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondragover: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondragstart: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondrop: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
    ondurationchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onemptied: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onended: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onfocus: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any)
    onformdata: null | ((this: GlobalEventHandlers, ev: FormDataEvent) => any)
    onfullscreenchange: null | ((this: Document, ev: Event) => any)
    onfullscreenerror: null | ((this: Document, ev: Event) => any)
    ongotpointercapture:
        | null
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    oninput: null | ((this: GlobalEventHandlers, ev: Event) => any)
    oninvalid: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onkeydown: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)
    onkeypress: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)

    MDN Reference

    onkeyup: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)
    onload: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onloadeddata: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onloadedmetadata: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onloadstart: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onlostpointercapture:
        | null
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onmousedown: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmouseenter: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmouseleave: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmousemove: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmouseout: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmouseover: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onmouseup: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
    onpaste: null | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any)
    onpause: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onplay: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onplaying: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onpointercancel: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerdown: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerenter: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerleave: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerlockchange: null | ((this: Document, ev: Event) => any)
    onpointerlockerror: null | ((this: Document, ev: Event) => any)
    onpointermove: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerout: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerover: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onpointerrawupdate: null | ((this: GlobalEventHandlers, ev: Event) => any)

    Available only in secure contexts.

    MDN Reference

    onpointerup: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    onprogress: null | ((this: GlobalEventHandlers, ev: ProgressEvent) => any)
    onratechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onreadystatechange: null | ((this: Document, ev: Event) => any)
    onreset: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onresize: null | ((this: GlobalEventHandlers, ev: UIEvent) => any)
    onscroll: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onscrollend: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onsecuritypolicyviolation:
        | null
        | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any)
    onseeked: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onseeking: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onselect: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onselectionchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onselectstart: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onslotchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onstalled: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onsubmit: null | ((this: GlobalEventHandlers, ev: SubmitEvent) => any)
    onsuspend: null | ((this: GlobalEventHandlers, ev: Event) => any)
    ontimeupdate: null | ((this: GlobalEventHandlers, ev: Event) => any)
    ontoggle: null | ((this: GlobalEventHandlers, ev: ToggleEvent) => any)
    ontouchcancel?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
    ontouchend?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
    ontouchmove?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
    ontouchstart?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
    ontransitioncancel:
        | null
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    ontransitionend:
        | null
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    ontransitionrun:
        | null
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    ontransitionstart:
        | null
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    onvisibilitychange: null | ((this: Document, ev: Event) => any)
    onvolumechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onwaiting: null | ((this: GlobalEventHandlers, ev: Event) => any)
    onwebkitanimationend: null | ((this: GlobalEventHandlers, ev: Event) => any)

    This is a legacy alias of onanimationend.

    MDN Reference

    onwebkitanimationiteration:
        | null
        | ((this: GlobalEventHandlers, ev: Event) => any)

    This is a legacy alias of onanimationiteration.

    MDN Reference

    onwebkitanimationstart: null | ((this: GlobalEventHandlers, ev: Event) => any)

    This is a legacy alias of onanimationstart.

    MDN Reference

    onwebkittransitionend: null | ((this: GlobalEventHandlers, ev: Event) => any)

    This is a legacy alias of ontransitionend.

    MDN Reference

    onwheel: null | ((this: GlobalEventHandlers, ev: WheelEvent) => any)
    ownerDocument: null

    The read-only ownerDocument property of the Node interface returns the top-level document object of the node.

    MDN Reference

    parentElement: null | HTMLElement

    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.

    MDN Reference

    parentNode: null | ParentNode

    The read-only parentNode property of the Node interface returns the parent of the specified node in the DOM tree.

    MDN Reference

    pictureInPictureElement: null | Element
    pictureInPictureEnabled: boolean

    The read-only pictureInPictureEnabled property of the available.

    MDN Reference

    plugins: HTMLCollectionOf<HTMLEmbedElement>

    The plugins read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection.

    MDN Reference

    pointerLockElement: null | Element
    previousSibling: null | ChildNode

    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.

    MDN Reference

    PROCESSING_INSTRUCTION_NODE: 7

    node is a ProcessingInstruction node.

    readyState: DocumentReadyState

    The Document.readyState property describes the loading state of the document.

    MDN Reference

    referrer: string

    The Document.referrer property returns the URI of the page that linked to this page.

    MDN Reference

    rootElement: null | SVGSVGElement

    Document.rootElement returns the Element that is the root element of the document if it is an documents.

    MDN Reference

    scripts: HTMLCollectionOf<HTMLScriptElement>

    The scripts property of the Document interface returns a list of the script elements in the document.

    MDN Reference

    scrollingElement: null | Element

    The scrollingElement read-only property of the scrolls the document.

    MDN Reference

    styleSheets: StyleSheetList
    TEXT_NODE: 3

    node is a Text node.

    The timeline readonly property of the Document interface represents the default timeline of the current document.

    MDN Reference

    title: string

    The document.title property gets or sets the current title of the document.

    MDN Reference

    URL: string

    The URL read-only property of the Document interface returns the document location as a string.

    MDN Reference

    visibilityState: DocumentVisibilityState

    The Document.visibilityState read-only property returns the visibility of the document.

    MDN Reference

    vlinkColor: string

    The Document.vlinkColor property gets/sets the color of links that the user has visited in the document.

    MDN Reference

    Accessors

    • get textContent(): null

      Returns null

    Methods

    • Document.adoptNode() transfers a node/dom from another Document into the method's document.

      MDN Reference

      Type Parameters

      Parameters

      • node: T

      Returns T

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

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

      MDN Reference

      Parameters

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

      Returns void

    • The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node.

      MDN Reference

      Type Parameters

      Parameters

      • node: T

      Returns T

    • The Document.clear() method does nothing, but doesn't raise any error.

      Returns void

      MDN Reference

    • The cloneNode() method of the Node interface returns a duplicate of the node on which this method was called.

      MDN Reference

      Parameters

      • Optionalsubtree: boolean

      Returns Node

    • The Document.close() method finishes writing to a document, opened with Document.open().

      MDN Reference

      Returns void

    • The compareDocumentPosition() method of the Node interface reports the position of its argument node relative to the node on which it is called.

      MDN Reference

      Parameters

      Returns number

    • 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.

      MDN Reference

      Parameters

      Returns boolean

    • The Document.createAttributeNS() method creates a new attribute node with the specified namespace URI and qualified name, and returns it.

      MDN Reference

      Parameters

      • namespace: null | string
      • qualifiedName: string

      Returns Attr

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • The execCommand method implements multiple different commands.

      Parameters

      • commandId: string
      • OptionalshowUI: boolean
      • Optionalvalue: string

      Returns boolean

      MDN Reference

    • The Document method exitFullscreen() requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen.

      MDN Reference

      Returns Promise<void>

    • The exitPictureInPicture() method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen.

      MDN Reference

      Returns Promise<void>

    • The exitPointerLock() method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock.

      MDN Reference

      Returns void

    • The getElementsByClassName method of of all child elements which have all of the given class name(s).

      MDN Reference

      Parameters

      • classNames: string

      Returns HTMLCollectionOf<Element>

    • The getElementsByName() method of the Document object returns a NodeList Collection of elements with a given name attribute in the document.

      MDN Reference

      Parameters

      • elementName: string

      Returns NodeListOf<HTMLElement>

    • Returns a list of elements with the given tag name belonging to the given namespace.

      MDN Reference

      Parameters

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

      Returns HTMLCollectionOf<HTMLElement>

    • Parameters

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

      Returns HTMLCollectionOf<SVGElement>

    • Parameters

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

      Returns HTMLCollectionOf<MathMLElement>

    • Parameters

      • namespace: null | string
      • localName: string

      Returns HTMLCollectionOf<Element>

    • The getSelection() method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.

      MDN Reference

      Returns null | Selection

    • The hasChildNodes() method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.

      MDN Reference

      Returns boolean

    • The hasFocus() method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus.

      MDN Reference

      Returns boolean

    • The hasStorageAccess() method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies.

      MDN Reference

      Returns Promise<boolean>

    • The insertBefore() method of the Node interface inserts a node before a reference node as a child of a specified parent node.

      MDN Reference

      Type Parameters

      Parameters

      • node: T
      • child: null | Node

      Returns T

    • The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument.

      MDN Reference

      Parameters

      • namespace: null | string

      Returns boolean

    • The isEqualNode() method of the Node interface tests whether two nodes are equal.

      MDN Reference

      Parameters

      • otherNode: null | Node

      Returns boolean

    • The isSameNode() method of the Node interface is a legacy alias the for the === strict equality operator.

      MDN Reference

      Parameters

      • otherNode: null | Node

      Returns boolean

    • 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).

      MDN Reference

      Parameters

      • prefix: null | string

      Returns null | string

    • The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.

      MDN Reference

      Parameters

      • namespace: null | string

      Returns null | string

    • The normalize() method of the Node interface puts the specified node and all of its sub-tree into a normalized form.

      MDN Reference

      Returns void

    • The Document.open() method opens a document for This does come with some side effects.

      MDN Reference

      Parameters

      • Optionalunused1: string
      • Optionalunused2: string

      Returns Document

    • Parameters

      • url: string | URL
      • name: string
      • features: string

      Returns null | Window

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

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

      MDN Reference

      Parameters

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

      Returns void

    • The Document.queryCommandEnabled() method reports whether or not the specified editor command is enabled by the browser.

      Parameters

      • commandId: string

      Returns boolean

      MDN Reference

    • Parameters

      • commandId: string

      Returns boolean

    • The queryCommandState() method will tell you if the current selection has a certain Document.execCommand() command applied.

      Parameters

      • commandId: string

      Returns boolean

      MDN Reference

    • The Document.queryCommandSupported() method reports whether or not the specified editor command is supported by the browser.

      Parameters

      • commandId: string

      Returns boolean

      MDN Reference

    • Parameters

      • commandId: string

      Returns string

    • The removeChild() method of the Node interface removes a child node from the DOM and returns the removed node.

      MDN Reference

      Type Parameters

      Parameters

      • child: T

      Returns T

    • The replaceChild() method of the Node interface replaces a child node within the given (parent) node.

      MDN Reference

      Type Parameters

      Parameters

      Returns T

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

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

      MDN Reference

      Parameters

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

      Returns void

    • The requestStorageAccess() method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state.

      MDN Reference

      Returns Promise<void>

    • The write() method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open().

      Parameters

      • ...text: string[]

      Returns void

      MDN Reference

    • The writeln() method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character.

      MDN Reference

      Parameters

      • ...text: string[]

      Returns void