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
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.
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.
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.
Retrieves a collection, in source order, of img objects in the document.
Retrieves a collection of all a objects that specify the href property and all area objects in the document.