import { type Document } from "https://deno.land/x/windmill@v1.361.1/node_modules/evt/src/lib/types/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
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.
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.
Contains information about the current URL.
Fires when the state of the object has changed.
Return an HTMLCollection of the embed elements in the Document.
Retrieves a value that indicates the current state of the object.
Retrieves a collection of all script objects in the document.
Methods
Moves node from another document and returns it.
If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
Creates an attribute object with a specified name.
Returns a CDATASection node whose data is data.
Creates a comment object with the specified data.
Creates a new document.
Creates an instance of the element for the specified tag.
Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
localName does not match the QName production. Namespace prefix is not null and namespace is the empty string. Namespace prefix is "xml" and namespace is not the XML namespace. qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
When supplied, options's is can be used to create a customized built-in element.
Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
Creates a text string from the specified value.
Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
Returns the element for the specified x coordinate and the specified y coordinate.
Executes a command on the current document, current selection, or the given range.
Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
Returns a reference to the first object with the specified value of the ID or NAME attribute.
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Gets a collection of objects based on the value of the NAME or ID attribute.
Retrieves a collection of objects based on the specified element name.
If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
Returns a Boolean value that indicates the current state of the command.
Returns a Boolean value that indicates whether the current command is supported on the current range.
Returns the current value of the document, range, or current selection for the given command.
Writes one or more HTML expressions to a document in the specified window.
Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.