node is a CDATASection node.
node is a Comment node.
node is a DocumentFragment node.
node is a document.
Set when other is a descendant of node.
Set when other is an ancestor of node.
Set when node and other are not in the same tree.
Set when other is following node.
Set when other is preceding node.
node is a doctype.
node is an element.
node is a ProcessingInstruction node.
node is a Text node.
Sets or gets the URL for the current document.
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
Sets or gets the color of all active links in the document.
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 node's node document's document base URL.
Deprecated. Sets or retrieves a value that indicates the background color behind the object.
Specifies the beginning and end of the document body.
Returns document's encoding.
Gets or sets the character set used to encode the object.
Returns the children.
Returns the child elements.
Gets a value that indicates whether standards-compliant mode is switched on for the object.
Returns document's content type.
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.
Sets or gets a value that indicates whether the document can be edited.
Sets or retrieves a value that indicates the reading order of the object.
Gets an object representing the document type declaration associated with the current document.
Gets a reference to the root node of the document.
Returns document's URL.
Sets or gets the security domain of the document.
Retrieves a collection of all embed objects in the document.
Sets or gets the foreground (text) color of the document.
Returns the first child.
Returns the first child that is an element, and null otherwise.
Retrieves a collection, in source order, of all form objects in the document.
Returns document's fullscreen element.
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.
Returns true if node is connected and false otherwise.
Returns the last child.
Returns the last child that is an element, and null otherwise.
Gets the date that the page was last modified, if the page supplies one.
Sets or gets the color of the document links.
Retrieves a collection of all a objects that specify the href property and all area objects in the document.
Returns the next sibling.
Returns a string appropriate for the type of node.
Returns the type of node.
Fires when the user aborts the download.
Fires when the object loses the input focus.
Occurs when playback is possible, but would require further buffering.
Fires when the contents of the object or selection have changed.
Fires when the user clicks the left mouse button on the object
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Fires when the user double-clicks the object.
Fires on the source object continuously during a drag operation.
Fires on the source object when the user releases the mouse at the close of a drag operation.
Fires on the target element when the user drags the object to a valid drop target.
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Fires on the target element continuously while the user drags the object over a valid drop target.
Fires on the source object when the user starts to drag a text selection or selected object.
Occurs when the duration attribute is updated.
Occurs when the media element is reset to its initial state.
Occurs when the end of playback is reached.
Fires when an error occurs during object loading.
Fires when the object receives focus.
Fires when the user presses a key.
Fires when the user presses an alphanumeric key.
Fires when the user releases a key.
Fires immediately after the browser loads the object.
Occurs when media data is loaded at the current playback position.
Occurs when the duration and dimensions of the media have been determined.
Occurs when Internet Explorer begins looking for media data.
Fires when the user clicks the object with either mouse button.
Fires when the user moves the mouse over the object.
Fires when the user moves the mouse pointer outside the boundaries of the object.
Fires when the user moves the mouse pointer into the object.
Fires when the user releases a mouse button while the mouse is over the object.
Occurs when playback is paused.
Occurs when the play method is requested.
Occurs when the audio or video has started playing.
Occurs to indicate progress while downloading media data.
Occurs when the playback rate is increased or decreased.
Fires when the state of the object has changed.
Fires when the user resets a form.
Fires when the user repositions the scroll box in the scroll bar on the object.
Occurs when the seek operation ends.
Occurs when the current playback position is moved.
Fires when the current selection changes.
Occurs when the download has stopped.
Occurs if the load operation has been intentionally halted.
Occurs to indicate the current playback position.
Occurs when the volume is changed, or playback is muted or unmuted.
Occurs when playback stops because the next frame of a video resource is not available.
Returns the parent element.
Returns the parent.
Return an HTMLCollection of the embed elements in the Document.
Returns the previous sibling.
Retrieves a value that indicates the current state of the object.
Gets the URL of the location that referred the user to the current page.
Retrieves a collection of all script objects in the document.
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
Contains the title of the document.
Sets or gets the color of the links that the user has visited.
Contains information about the current URL.
Contains information about the current URL.
Closes an output stream and forces the sent data to display.
Returns a CDATASection node whose data is data.
Creates a new document.
Creates an instance of the element for the specified tag.
The name of an element.
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.
The root element or node to start traversing on.
The type of nodes or elements to appear in the node list
A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
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.
Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
The root element or node to start traversing on.
The type of nodes or elements to appear in the node list. For more information, see whatToShow.
A custom NodeFilter function to use.
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Executes a command on the current document, current selection, or the given range.
String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
Display the user interface, defaults to false.
Value to assign.
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 attribute.
String that specifies the ID value.
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.
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 node's root.
Returns whether node has children.
Gets a value indicating whether the object currently has focus.
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
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.
Specifies a command identifier.
Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
String that specifies a command identifier.
Returns a Boolean value that indicates the current state of the command.
String that specifies a command identifier.
Returns a Boolean value that indicates whether the current command is supported on the current range.
Specifies a command identifier.
Returns the current value of the document, range, or current selection for the given command.
String that specifies a command identifier.
Returns the first element that is a descendant of node that matches selectors.
Returns all element descendants of node that match selectors.
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.
Generated using TypeDoc
An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.