Package-level declarations

Types

Link copied to clipboard
sealed interface Animatable
Link copied to clipboard
open class Attr : Node

The Attr interface represents one of an element's attributes as an object.

Link copied to clipboard
open class CaretPosition

The CaretPosition interface represents the caret position, an indicator for the text insertion point.

Link copied to clipboard
open class CDATASection : Text

The CDATASection interface represents a CDATA section that can be used within XML to include extended portions of unescaped text.

Link copied to clipboard

The CharacterData abstract interface represents a Node object that contains characters.

Link copied to clipboard
Link copied to clipboard
sealed interface ChildNode : Node
Link copied to clipboard
open class Comment(data: String = definedExternally) : CharacterData

The Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.

Link copied to clipboard

The Document interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.

Link copied to clipboard

The DocumentFragment interface represents a minimal document object that has no parent.

Link copied to clipboard
Link copied to clipboard
sealed interface DocumentReadyState
Link copied to clipboard

The DocumentType interface represents a Node containing a doctype.

Link copied to clipboard
sealed interface DocumentVisibilityState
Link copied to clipboard

The DOMImplementation interface represents an object providing methods which are not dependent on any particular document.

Link copied to clipboard

The DOMStringList interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (DOMString).

Link copied to clipboard

The DOMStringMap interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements.

Link copied to clipboard
open class DOMTokenList<T : JsAny> : ListLike<T>

The DOMTokenList interface represents a set of space-separated tokens.

Link copied to clipboard

Element is the most general base class from which all element objects (i.e., objects that represent elements) in a Document inherit.

Link copied to clipboard
Link copied to clipboard
sealed interface ElementId
Link copied to clipboard
interface FocusOptions
Link copied to clipboard
Link copied to clipboard
interface GetHTMLOptions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Union of:

Link copied to clipboard
Link copied to clipboard
sealed interface InsertPosition
Link copied to clipboard

The NamedNodeMap interface represents a collection of Attr objects.

Link copied to clipboard
open class Node : EventTarget

The DOM Node interface is an abstract base class upon which many other DOM API objects are based, thus letting those object types be used similarly and often interchangeably.

Link copied to clipboard
typealias NodeFilter = (node: Node) -> Short
Link copied to clipboard
open class NodeIterator

The NodeIterator interface represents an iterator to traverse nodes of a DOM subtree in document order.

Link copied to clipboard
abstract class NodeList<T : Node> : ListLike<T>

NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

Link copied to clipboard
sealed interface NodeType
Link copied to clipboard
sealed interface NonDocumentTypeChildNode
Link copied to clipboard
sealed interface NonElementParentNode
Link copied to clipboard
sealed interface ParentNode : Node
Link copied to clipboard
Link copied to clipboard

The ProcessingInstruction interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.

Link copied to clipboard
sealed interface TagName<T : Element>
Link copied to clipboard
sealed interface TagNamespace<in T : Element>
Link copied to clipboard
open class Text(data: String = definedExternally) : CharacterData, Slottable

The Text interface represents a text Node in a DOM tree.

Link copied to clipboard
open class TreeWalker

The TreeWalker object represents the nodes of a document subtree and a position within them.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val document: Document

window.document returns a reference to the document contained in the window.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun ElementId(value: String): ElementId
Link copied to clipboard
inline suspend fun Document.exitFullscreen()

The Document method exitFullscreen() requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen.

Link copied to clipboard
inline suspend fun Document.exitPictureInPicture()

The exitPictureInPicture() method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen.

Link copied to clipboard
external fun getComputedStyle(element: Element, pseudoElement: String? = definedExternally): CSSStyleProperties

The Window.getComputedStyle() method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.

Link copied to clipboard
inline suspend fun Document.hasStorageAccess(): Boolean

The hasStorageAccess() method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies.

Link copied to clipboard
inline suspend fun Element.requestFullscreen()
inline suspend fun Element.requestFullscreen(options: FullscreenOptions)

The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in fullscreen mode.

Link copied to clipboard
inline suspend fun Element.requestPointerLock()
inline suspend fun Element.requestPointerLock(options: PointerLockOptions)

The requestPointerLock() method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.

Link copied to clipboard
inline suspend fun Document.requestStorageAccess()

The requestStorageAccess() method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state.

Link copied to clipboard
inline fun <T : Element> TagName(value: String): TagName<T>
Link copied to clipboard
inline fun <T : Element> TagNamespace(value: String): TagNamespace<T>