Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/frugal/dep/dom.ts>Document

A frugal web framework
Go to Latest
class Document
extends Node
Re-export
import { Document } from "https://deno.land/x/frugal@0.3.0/dep/dom.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[]
adoptNode(node: Node)
appendChild(child: Node): Node
createComment(data?: string): Comment
createDocumentFragment(): DocumentFragment
createElement(tagName: string, options?: ElementCreationOptions): Element
createElementNS(
namespace: NamespaceURI,
qualifiedName: string,
options?: ElementCreationOptions,
): 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