import { Document } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Document.
Properties
adoptedStyleSheets: CSSStyleSheet[]
readonly
children: IHTMLCollection<IElement>onreadystatechange: (event: Event) => void
Methods
Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
createElementNS(): IElement
namespaceURI: string,
qualifiedName: string,
options?: { is: string; },
Creates an element with the specified namespace URI and qualified name.
getElementsByClassName(className: string): IHTMLCollection<IElement>
Returns an elements by class name.
getElementsByTagNameNS(namespaceURI: string, tagName: string): IHTMLCollection<IElement>
Returns an elements by tag name and namespace.
Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
replaceChildren(...nodes: (INode | string)[]): void
Replaces the existing children of a node with a specified new set of children.