Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>Document

Deno Standard Extensions
Go to Latest
import { type Document } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.

Properties

readonly
URL: string

Sets or gets the URL for the current document.

deprecated
alinkColor: string

Sets or gets the color of all active links in the document.

readonly
deprecated
all: HTMLAllCollection

Returns a reference to the collection of elements contained by the object.

readonly
deprecated
anchors: HTMLCollectionOf<HTMLAnchorElement>

Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.

readonly
deprecated
applets: HTMLCollection

Retrieves a collection of all applet objects in the document.

deprecated
bgColor: string

Deprecated. Sets or retrieves a value that indicates the background color behind the object.

Specifies the beginning and end of the document body.

readonly
characterSet: string

Returns document's encoding.

readonly
deprecated
charset: string

Gets or sets the character set used to encode the object.

readonly
compatMode: string

Gets a value that indicates whether standards-compliant mode is switched on for the object.

readonly
contentType: string

Returns document's content type.

readonly
currentScript: HTMLOrSVGScriptElement | null

Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.

Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.

readonly
defaultView: (WindowProxy & globalThis) | null

Returns the Window object of the active document.

designMode: string

Sets or gets a value that indicates whether the document can be edited.

dir: string

Sets or retrieves a value that indicates the reading order of the object.

readonly
doctype: DocumentType | null

Gets an object representing the document type declaration associated with the current document.

readonly
documentElement: HTMLElement

Gets a reference to the root node of the document.

readonly
documentURI: string

Returns document's URL.

domain: string

Sets or gets the security domain of the document.

Retrieves a collection of all embed objects in the document.

deprecated
fgColor: string

Sets or gets the foreground (text) color of the document.

Retrieves a collection, in source order, of all form objects in the document.

readonly
deprecated
fullscreen: boolean
readonly
fullscreenEnabled: boolean

Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.

readonly
head: HTMLHeadElement

Returns the head element.

readonly
hidden: boolean

Retrieves a collection, in source order, of img objects in the document.

readonly
implementation: DOMImplementation

Gets the implementation object of the current document.

readonly
deprecated
inputEncoding: string

Returns the character encoding used to create the webpage that is loaded into the document object.

readonly
lastModified: string

Gets the date that the page was last modified, if the page supplies one.

deprecated
linkColor: string

Sets or gets the color of the document links.