Package-level declarations

Types

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

A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.

Link copied to clipboard
sealed external class CaretPosition
Link copied to clipboard
Link copied to clipboard
sealed external class CDATASection : Text

A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section.

Link copied to clipboard

The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.

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

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

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

A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.

Link copied to clipboard
external interface DocumentOrShadowRoot
Link copied to clipboard
sealed external interface DocumentReadyState
Link copied to clipboard
sealed external class DocumentType : Node, ChildNode

A Node containing a doctype.

Link copied to clipboard
sealed external interface DocumentVisibilityState
Link copied to clipboard
sealed external class DOMImplementation

An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.

Link copied to clipboard
sealed external class DOMStringList : ArrayLike<String> , JsIterable<String>

A type returned by some APIs which contains a list of DOMString (strings).

Link copied to clipboard
sealed external class DOMStringMap : Record<String, String>

Used by the dataset HTML attribute to represent data for custom attributes added to elements.

Link copied to clipboard
sealed external class DOMTokenList : ListLike<String>

A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.

Link copied to clipboard

Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.

Link copied to clipboard
external interface ElementCreationOptions
Link copied to clipboard
external interface ElementNamespace
Link copied to clipboard
external interface FocusOptions
Link copied to clipboard
external interface GetAnimationsOptions
Link copied to clipboard
external interface GetHTMLOptions
Link copied to clipboard
external interface GetRootNodeOptions
Link copied to clipboard
external interface GlobalEventHandlers : EventTarget
Link copied to clipboard
external interface HTMLOrSVGElement
Link copied to clipboard

Union of:

Link copied to clipboard
external interface HTMLOrSVGScriptElement

Union of:

Link copied to clipboard
sealed external interface InsertPosition
Link copied to clipboard
sealed external class NamedNodeMap : ArrayLike<Attr> , JsIterable<Attr>

A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.

Link copied to clipboard
sealed external class Node : EventTarget

Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.

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

An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.

Link copied to clipboard
abstract external 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
typealias NodeListOf<T> = NodeList<T>
Link copied to clipboard
sealed external interface NodeType
Link copied to clipboard
sealed external interface NonDocumentTypeChildNode
Link copied to clipboard
sealed external interface NonElementParentNode
Link copied to clipboard
sealed external interface ParentNode : Node
Link copied to clipboard
external interface PointerLockOptions
Link copied to clipboard

A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.

Link copied to clipboard
open external class Text(data: String = definedExternally) : CharacterData, Slottable

The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.

Link copied to clipboard
sealed external class TreeWalker

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
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
external fun getComputedStyle(element: Element, pseudoElement: String? = definedExternally): CSSStyleDeclaration