import { type Document } from "https://deno.land/x/yxz@0.32.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
Returns a reference to the collection of elements contained by the object.
Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
Retrieves a collection of all applet objects in the document.
Deprecated. Sets or retrieves a value that indicates the background color behind the object.
Specifies the beginning and end of the document body.
Gets a value that indicates whether standards-compliant mode is switched on for the object.
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
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.
Returns the Window object of the active document.
Gets an object representing the document type declaration associated with the current document.
Gets a reference to the root node of the document.
Retrieves a collection of all embed objects in the document.
Retrieves a collection, in source order, of all form objects in the document.
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
Returns the head element.
Retrieves a collection, in source order, of img objects in the document.
Gets the implementation object of the current document.
Returns the character encoding used to create the webpage that is loaded into the document object.
Gets the date that the page was last modified, if the page supplies one.
Retrieves a collection of all a objects that specify the href property and all area objects in the document.