Module

x/deno_dom/deno-dom-wasm.ts>Document

Browser DOM & HTML parser in Deno
Very Popular
Go to Latest
class Document
extends Node
import { Document } from "https://dotland.deno.dev/x/deno_dom@v0.1.45/deno-dom-wasm.ts";

Constructors

new
Document()

Properties

readonly
_nwapi
body: Element
readonly
childElementCount: number
readonly
compatMode: string
readonly
doctype: DocumentType | null
readonly
documentElement: Element | null
readonly
documentURI
head: Element
readonly
hidden
implementation: DOMImplementation
readonly
title
readonly
visibilityState: VisibilityState

Methods

private
_getElementsByTagName(tagName: string, search: Node[]): Node[]
private
_getElementsByTagNameWildcard(node: Node, search: Node[]): Node[]
cloneNode(deep?: boolean): Document
createComment(data?: string): Comment
createElement(tagName: string, options?: ElementCreationOptions): Element
createElementNS(
namespace: NamespaceURI,
qualifiedName: string,
): Element
createTextNode(data?: string): Text
getElementById(id: string): Element | null
getElementsByClassName(className: string): Element[]
getElementsByTagName(tagName: string): Element[]
getElementsByTagNameNS(_namespace: string, localName: string): Element[]
hasFocus(): boolean
importNode(node: Node, deep?: boolean)
querySelector(selectors: string): Element | null
querySelectorAll(selectors: string): NodeList
import Document
import { Document } from "https://dotland.deno.dev/x/deno_dom@v0.1.45/deno-dom-wasm.ts";