Module

x/lume/deps/dom.ts>Document

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class Document
extends Node
import { Document } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/dom.ts";

Constructors

new
Document()

Properties

readonly
_nwapi: SelectorApi
body: Element
readonly
childElementCount: number
readonly
compatMode: string
readonly
doctype: DocumentType | null
readonly
documentElement: Element | null
readonly
documentURI: string
head: Element
readonly
hidden: boolean
implementation: DOMImplementation
title: string
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): Node
querySelector<T = Element>(selectors: string): T | null
querySelectorAll<T extends Element = Element>(selectors: string): NodeList<T>
import Document
import { Document } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/dom.ts";