import { type IDocument } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Document.
Properties
onreadystatechange: (event: Event) => void
readonly
defaultView: Windowreadonly
documentElement: IHTMLElementreadonly
doctype: IDocumentTypereadonly
body: IHTMLElementreadonly
head: IHTMLElementMethods
open(): IDocument
Opens the document.
createElement(tagName: string, options?: { is: string; }): IElement
Creates an element.
createElementNS(): IElement
namespaceURI: string,
qualifiedName: string,
options?: { is: string; },
Creates an element with the specified namespace URI and qualified name.
createDocumentFragment(): IDocumentFragment
Creates a document fragment.
createTreeWalker(): TreeWalker
Creates a Tree Walker.
createEvent(_type: string): Event
Creates an event.
getElementById(id: string): IElement
Returns an element by ID.
cloneNode(deep: boolean): IDocument
Clones a node.