Skip to main content
Module

x/aleph/vendor/deno-dom/document.ts>Document

The Full-stack Framework in Deno.
Go to Latest
class Document
extends Node
import { Document } from "https://deno.land/x/aleph@v0.2.24/vendor/deno-dom/document.ts";

Constructors

new
Document()

Properties

readonly
_nwapi
body: Element
readonly
compatMode: string
readonly
documentElement: Element | null
readonly
documentURI
head: Element
readonly
hidden
readonly
scripts
readonly
title
readonly
visibilityState: VisibilityState

Methods

private
_getElementsByClassName(className: string, search: Node[]): Node[]
private
_getElementsByTagName(tagName: string, search: Node[]): Node[]
private
_getElementsByTagNameWildcard(node: Node, search: Node[]): Node[]
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
querySelector(selectors: string): Element | null
querySelectorAll(selectors: string): NodeList