DOM
Types
abstractRange
type abstractRange = DOM.abstractRangeRecord fields
alphaOption
type alphaOption = @as("discard") Discard | @as("keep") Keepanimation
type animation = { mutable id: string, mutable effect: Null.t<animationEffect>, mutable timeline: Null.t<animationTimeline>, mutable playbackRate: float, playState: animationPlayState, replaceState: animationReplaceState, pending: bool, ready: promise<animation>, finished: promise<animation>, mutable startTime: Null.t<float>, mutable currentTime: Null.t<float>,}Record fields
animationPlayState
type animationPlayState = | @as("finished") Finished | @as("idle") Idle | @as("paused") Paused | @as("running") RunninganimationReplaceState
type animationReplaceState = | @as("active") Active | @as("persisted") Persisted | @as("removed") RemovedanimationTimeline
type animationTimeline = private { currentTime: Null.t<float>,}Record fields
assignedNodesOptions
type assignedNodesOptions = {mutable flatten?: bool}Record fields
flatten
attr
type attr = DOM.attrRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autoFillBase
type autoFillBase = @as("off") Off | @as("on") OnbarProp
type barProp = {visible: bool}Record fields
blob
type blob = FileTypes.blobRecord fields
canPlayTypeResult
type canPlayTypeResult = | @as("maybe") Maybe | @as("probably") ProbablycanvasContext2DAttributes
type canvasContext2DAttributes = { alpha: bool, colorspace?: predefinedColorSpace, desynchronized: bool, willReadFrequently: bool,}Record fields
alpha
colorspace
desynchronized
willReadFrequently
canvasRenderingContext2D
The CanvasRenderingContext2D interface, part of the WebApiCanvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. See CanvasRenderingContext2D on MDN
type canvasRenderingContext2DcaretPosition
type caretPosition = DOM.caretPositioncaretPositionFromPointOptions
type caretPositionFromPointOptions = { mutable shadowRoots?: array<shadowRoot>,}Record fields
shadowRoots
cdataSection
type cdataSection = DOM.cdataSectionRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
characterData
type characterData = DOM.characterDataRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
checkVisibilityOptions
type checkVisibilityOptions = { mutable checkOpacity?: bool, mutable checkVisibilityCSS?: bool, mutable contentVisibilityAuto?: bool, mutable opacityProperty?: bool, mutable visibilityProperty?: bool,}Record fields
checkOpacity
checkVisibilityCSS
contentVisibilityAuto
opacityProperty
visibilityProperty
colorSpaceConversion
type colorSpaceConversion = | @as("default") Default | @as("none") Nonecomment
type comment = DOM.commentRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
compositeOperation
type compositeOperation = | @as("accumulate") Accumulate | @as("add") Add | @as("replace") ReplacecomputedEffectTiming
type computedEffectTiming = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable progress?: Null.t<float>, mutable currentIteration?: Null.t<float>, mutable startTime?: float, mutable endTime?: float, mutable activeDuration?: float, mutable localTime?: Null.t<float>,}Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
progress
currentIteration
startTime
endTime
activeDuration
localTime
cssRule
type cssRule = DOM.cssRuleRecord fields
cssStyleDeclaration
type cssStyleDeclaration = DOM.cssStyleDeclarationRecord fields
cssStyleSheet
type cssStyleSheet = DOM.cssStyleSheetRecord fields
cssStyleSheetInit
type cssStyleSheetInit = { mutable baseURL?: string, mutable media?: unknown, mutable disabled?: bool,}Record fields
baseURL
media
disabled
cssStyleValue
type cssStyleValue = DOM.cssStyleValuecustomElementConstructor
type customElementConstructordocument
type document = DOM.documentRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the WebApiURL of the location that referred the user to the current page. Read more on MDN
cookie
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. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
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. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
documentFragment
type documentFragment = DOM.documentFragmentRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
documentReadyState
type documentReadyState = | @as("complete") Complete | @as("interactive") Interactive | @as("loading") LoadingdocumentTimeline
type documentTimeline = private {currentTime: Null.t<float>}Record fields
documentTimelineOptions
type documentTimelineOptions = {mutable originTime?: float}Record fields
originTime
documentType
type documentType = DOM.documentTypeRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
documentVisibilityState
type documentVisibilityState = | @as("hidden") Hidden | @as("visible") VisibledomImplementation
type domImplementation = DOM.domImplementationdomMatrix
type domMatrix = private { a: float, b: float, c: float, d: float, e: float, f: float, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float,}Record fields
domMatrix2DInit
type domMatrix2DInit = { mutable a?: float, mutable b?: float, mutable c?: float, mutable d?: float, mutable e?: float, mutable f?: float, mutable m11?: float, mutable m12?: float, mutable m21?: float, mutable m22?: float, mutable m41?: float, mutable m42?: float,}Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
domMatrixInit
type domMatrixInit = { mutable a?: float, mutable b?: float, mutable c?: float, mutable d?: float, mutable e?: float, mutable f?: float, mutable m11?: float, mutable m12?: float, mutable m21?: float, mutable m22?: float, mutable m41?: float, mutable m42?: float, mutable m13?: float, mutable m14?: float, mutable m23?: float, mutable m24?: float, mutable m31?: float, mutable m32?: float, mutable m33?: float, mutable m34?: float, mutable m43?: float, mutable m44?: float, mutable is2D?: bool,}Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
m13
m14
m23
m24
m31
m32
m33
m34
m43
m44
is2D
domMatrixReadOnly
type domMatrixReadOnly = private { a: float, b: float, c: float, d: float, e: float, f: float, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float,}Record fields
domPoint
type domPoint = private { x: float, y: float, z: float, w: float,}Record fields
domPointInit
type domPointInit = { mutable x?: float, mutable y?: float, mutable z?: float, mutable w?: float,}Record fields
x
y
z
w
domPointReadOnly
type domPointReadOnly = private { x: float, y: float, z: float, w: float,}Record fields
domRect
type domRect = DOM.domRectRecord fields
domRectInit
type domRectInit = { mutable x?: float, mutable y?: float, mutable width?: float, mutable height?: float,}Record fields
x
y
width
height
domRectList
type domRectList = DOM.domRectListdomRectReadOnly
type domRectReadOnly = DOM.domRectReadOnlyRecord fields
domStringList
type domStringList = DOM.domStringListRecord fields
domStringMap
Used by the dataset HTML attribute to represent data for custom attributes added to elements. See DOMStringMap on MDN
type domStringMap = {}domTokenList
type domTokenList = {length: int, mutable value: string}Record fields
value
Returns the associated set as string.
Can be set, to change the associated attribute. Read more on MDN
effectTiming
type effectTiming = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown,}Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
element
type element = DOM.elementRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
elementCreationOptions
type elementCreationOptions = {mutable is?: string}Record fields
is
elementDefinitionOptions
type elementDefinitionOptions = {mutable extends?: string}Record fields
extends
elementInternals
type elementInternals = DOM.elementInternalsRecord fields
shadowRoot
Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. Read more on MDN
form
Returns the form owner of internals's target element. Read more on MDN
willValidate
Returns true if internals's target element will be validated when the form is submitted; false otherwise. Read more on MDN
validity
Returns the ValidityState object for internals's target element. Read more on MDN
validationMessage
Returns the error message that would be shown to the user if internals's target element was to be checked for validity. Read more on MDN
labels
Returns a NodeList of all the label elements that internals's target element is associated with. Read more on MDN
eventTarget
type eventTarget = EventTypes.eventTargeteventType
type eventType = EventTypes.eventTypefile
type file = FileTypes.fileRecord fields
fileSystemEntry
type fileSystemEntry = FileAndDirectoryEntriesTypes.fileSystemEntryRecord fields
fillMode
type fillMode = | @as("auto") Auto | @as("backwards") Backwards | @as("both") Both | @as("forwards") Forwards | @as("none") NonefocusOptions
type focusOptions = {mutable preventScroll?: bool}Record fields
preventScroll
fontFaceSet
type fontFaceSet = CssFontLoadingTypes.fontFaceSetRecord fields
fullscreenNavigationUI
type fullscreenNavigationUI = | @as("auto") Auto | @as("hide") Hide | @as("show") ShowfullscreenOptions
type fullscreenOptions = { mutable navigationUI?: fullscreenNavigationUI,}Record fields
navigationUI
getAnimationsOptions
type getAnimationsOptions = {mutable subtree?: bool}Record fields
subtree
getHTMLOptions
type getHTMLOptions = { mutable serializableShadowRoots?: bool, mutable shadowRoots?: array<shadowRoot>,}Record fields
serializableShadowRoots
shadowRoots
getRootNodeOptions
type getRootNodeOptions = {mutable composed?: bool}Record fields
composed
htmlAnchorElement
type htmlAnchorElement = DOM.htmlAnchorElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
protocol
Returns the hyperlink's WebApiURL's scheme.
Can be set, to change the WebApiURL's scheme. Read more on MDN
username
Returns the hyperlink's WebApiURL's username.
Can be set, to change the WebApiURL's username. Read more on MDN
password
Returns the hyperlink's WebApiURL's password.
Can be set, to change the WebApiURL's password. Read more on MDN
host
Returns the hyperlink's WebApiURL's host and port (if different from the default port for the scheme).
Can be set, to change the WebApiURL's host and port. Read more on MDN
hostname
Returns the hyperlink's WebApiURL's host.
Can be set, to change the WebApiURL's host. Read more on MDN
port
Returns the hyperlink's WebApiURL's port.
Can be set, to change the WebApiURL's port. Read more on MDN
pathname
Returns the hyperlink's WebApiURL's path.
Can be set, to change the WebApiURL's path. Read more on MDN
search
Returns the hyperlink's WebApiURL's query (includes leading "?" if non-empty).
Can be set, to change the WebApiURL's query (ignores leading "?"). Read more on MDN
hash
Returns the hyperlink's WebApiURL's fragment (includes leading "#" if non-empty).
Can be set, to change the WebApiURL's fragment (ignores leading "#"). Read more on MDN
htmlAreaElement
type htmlAreaElement = DOM.htmlAreaElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
protocol
Returns the hyperlink's WebApiURL's scheme.
Can be set, to change the WebApiURL's scheme. Read more on MDN
username
Returns the hyperlink's WebApiURL's username.
Can be set, to change the WebApiURL's username. Read more on MDN
password
Returns the hyperlink's WebApiURL's password.
Can be set, to change the WebApiURL's password. Read more on MDN
host
Returns the hyperlink's WebApiURL's host and port (if different from the default port for the scheme).
Can be set, to change the WebApiURL's host and port. Read more on MDN
hostname
Returns the hyperlink's WebApiURL's host.
Can be set, to change the WebApiURL's host. Read more on MDN
port
Returns the hyperlink's WebApiURL's port.
Can be set, to change the WebApiURL's port. Read more on MDN
pathname
Returns the hyperlink's WebApiURL's path.
Can be set, to change the WebApiURL's path. Read more on MDN
search
Returns the hyperlink's WebApiURL's query (includes leading "?" if non-empty).
Can be set, to change the WebApiURL's query (ignores leading "?"). Read more on MDN
hash
Returns the hyperlink's WebApiURL's fragment (includes leading "#" if non-empty).
Can be set, to change the WebApiURL's fragment (ignores leading "#"). Read more on MDN
htmlAudioElement
Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. See HTMLAudioElement on MDN
type htmlAudioElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, error: Null.t<mediaError>, mutable src: string, mutable srcObject: Null.t<mediaProvider>, currentSrc: string, mutable crossOrigin: Null.t<string>, networkState: int, mutable preload: string, buffered: timeRanges, readyState: int, mutable currentTime: float, duration: float, paused: bool, mutable defaultPlaybackRate: float, mutable playbackRate: float, mutable preservesPitch: bool, seekable: timeRanges, ended: bool, mutable autoplay: bool, mutable loop: bool, mutable controls: bool, mutable volume: float, mutable muted: bool, mutable defaultMuted: bool, textTracks: textTrackList, sinkId: string, remote: remotePlayback, mutable disableRemotePlayback: bool,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
src
The address or WebApiURL of the a media resource that is to be considered. Read more on MDN
currentSrc
Gets the address or WebApiURL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlBaseElement
Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. See HTMLBaseElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlBaseElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable href: string, mutable target: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlBodyElement
Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. See HTMLBodyElement on MDN
type htmlBodyElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlbrElement
A HTML line break element (<br>). It inherits from HTMLElement. See HTMLBRElement on MDN
type htmlbrElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlButtonElement
type htmlButtonElement = DOM.htmlButtonElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlCanvasElement
Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. See HTMLCanvasElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlCanvasElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable width: int, mutable height: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlCollection
type htmlCollection<'a> = DOM.htmlCollection<'a>Record fields
htmlDataElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. See HTMLDataElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlDataElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable value: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDataListElement
type htmlDataListElement = DOM.htmlDataListElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
options
Returns an HTMLCollection of the option elements of the datalist element. Read more on MDN
htmlDialogElement
See HTMLDialogElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlDialogElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable open_: bool, mutable returnValue: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDivElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. See HTMLDivElement on MDN
type htmlDivElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmldListElement
Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. See HTMLDListElement on MDN
type htmldListElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlElement
type htmlElement = DOM.htmlElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlEmbedElement
type htmlEmbedElement = DOM.htmlEmbedElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlFieldSetElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. See HTMLFieldSetElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlFieldSetElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable disabled: bool, form: Null.t<htmlFormElement>, mutable name: string, type_: string, elements: htmlCollection<element>, willValidate: bool, validity: validityState, validationMessage: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
elements
Returns an HTMLCollection of the form controls in the element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlFormControlsCollection
type htmlFormControlsCollection = DOM.htmlFormControlsCollectionRecord fields
htmlFormElement
type htmlFormElement = DOM.htmlFormElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
acceptCharset
Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. Read more on MDN
action
Sets or retrieves the WebApiURL to which the form content is sent for processing. Read more on MDN
autocomplete
Specifies whether autocomplete is applied to an editable text field. Read more on MDN
elements
Retrieves a collection, in source order, of all controls in a given form. Read more on MDN
htmlFrameSetElement
Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. See HTMLFrameSetElement on MDN
type htmlFrameSetElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadElement
type htmlHeadElement = DOM.htmlHeadElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadingElement
The different heading elements. It inherits methods and properties from the HTMLElement interface. See HTMLHeadingElement on MDN
type htmlHeadingElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlhrElement
Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. See HTMLHRElement on MDN
type htmlhrElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHtmlElement
Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. See HTMLHtmlElement on MDN
type htmlHtmlElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmliFrameElement
Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. See HTMLIFrameElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmliFrameElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable src: string, mutable srcdoc: string, mutable name: string, sandbox: domTokenList, mutable allow: string, mutable allowFullscreen: bool, mutable width: string, mutable height: string, mutable referrerPolicy: referrerPolicy, mutable loading: string, contentDocument: Null.t<document>, contentWindow: Null.t<window>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
htmlImageElement
type htmlImageElement = DOM.htmlImageElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
src
The address or WebApiURL of the a media resource that is to be considered. Read more on MDN
useMap
Sets or retrieves the WebApiURL, often with a bookmark extension (#name), to use as a client-side image map. Read more on MDN
loading
Sets or retrieves the policy for loading image elements that are outside the viewport. Read more on MDN
htmlInputElement
type htmlInputElement = DOM.htmlInputElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autocomplete
Specifies whether autocomplete is applied to an editable text field. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
indeterminate
When set, overrides the rendering of checkbox controls so that the current value is not visible. Read more on MDN
list
Specifies the ID of a pre-defined datalist of options for an input element. Read more on MDN
max
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
min
Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
pattern
Gets or sets a string containing a regular expression that the user's input must match. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
src
The address or WebApiURL of the a media resource that is to be considered. Read more on MDN
step
Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. Read more on MDN
valueAsDate
Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
selectionEnd
Gets or sets the end position or offset of a text selection. Read more on MDN
htmlLabelElement
type htmlLabelElement = DOM.htmlLabelElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlFor
Sets or retrieves the object to which the given label object is assigned. Read more on MDN
control
Returns the form control that is associated with this element. Read more on MDN
htmlLegendElement
The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. See HTMLLegendElement on MDN
type htmlLegendElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, form: Null.t<htmlFormElement>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlliElement
Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. See HTMLLIElement on MDN
type htmlliElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlLinkElement
Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. See HTMLLinkElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlLinkElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable href: string, mutable crossOrigin: Null.t<string>, mutable rel: string, mutable as_: string, relList: domTokenList, mutable media: string, mutable integrity: string, mutable hreflang: string, mutable type_: string, mutable referrerPolicy: string, mutable disabled: bool, mutable fetchPriority: string, sheet: Null.t<cssStyleSheet>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
htmlMapElement
Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. See HTMLMapElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlMapElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable name: string, areas: htmlCollection<element>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
areas
Retrieves a collection of the area objects defined for the given map object. Read more on MDN
htmlMediaElement
Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. See HTMLMediaElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlMediaElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, error: Null.t<mediaError>, mutable src: string, mutable srcObject: Null.t<mediaProvider>, currentSrc: string, mutable crossOrigin: Null.t<string>, networkState: int, mutable preload: string, buffered: timeRanges, readyState: int, mutable currentTime: float, duration: float, paused: bool, mutable defaultPlaybackRate: float, mutable playbackRate: float, mutable preservesPitch: bool, seekable: timeRanges, ended: bool, mutable autoplay: bool, mutable loop: bool, mutable controls: bool, mutable volume: float, mutable muted: bool, mutable defaultMuted: bool, textTracks: textTrackList, sinkId: string, remote: remotePlayback, mutable disableRemotePlayback: bool,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
src
The address or WebApiURL of the a media resource that is to be considered. Read more on MDN
currentSrc
Gets the address or WebApiURL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlMenuElement
type htmlMenuElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlMetaElement
Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. See HTMLMetaElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlMetaElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable name: string, mutable httpEquiv: string, mutable content: string, mutable media: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
name
Sets or retrieves the value specified in the content attribute of the meta object. Read more on MDN
httpEquiv
Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. Read more on MDN
htmlMeterElement
The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. See HTMLMeterElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlMeterElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable value: float, mutable min: float, mutable max: float, mutable low: float, mutable high: float, mutable optimum: float, labels: nodeList<htmlLabelElement>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlModElement
Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. See HTMLModElement on MDN
type htmlModElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlObjectElement
Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. See HTMLObjectElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlObjectElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable data: string, mutable type_: string, mutable name: string, form: Null.t<htmlFormElement>, mutable width: string, mutable height: string, contentDocument: Null.t<document>, contentWindow: Null.t<window>, willValidate: bool, validity: validityState, validationMessage: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
data
Sets or retrieves the WebApiURL that references the data of the object. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmloListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. See HTMLOListElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmloListElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable reversed: bool, mutable start: int, mutable type_: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlOptGroupElement
Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. See HTMLOptGroupElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlOptGroupElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable disabled: bool, mutable label: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
htmlOptionElement
type htmlOptionElement = DOM.htmlOptionElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
selected
Sets or retrieves whether the option in the list box is the default item. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
htmlOptionsCollection
type htmlOptionsCollection = DOM.htmlOptionsCollectionRecord fields
selectedIndex
Returns the index of the first selected item, if any, or −1 if there is no selected item.
Can be set, to change the selection. Read more on MDN
htmlOutputElement
type htmlOutputElement = DOM.htmlOutputElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlParagraphElement
Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. See HTMLParagraphElement on MDN
type htmlParagraphElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPictureElement
A <picture> HTML element. It doesn't implement specific properties or methods. See HTMLPictureElement on MDN
type htmlPictureElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPreElement
Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). See HTMLPreElement on MDN
type htmlPreElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlProgressElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. See HTMLProgressElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlProgressElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable value: float, mutable max: float, position: float, labels: nodeList<htmlLabelElement>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
value
Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. Read more on MDN
position
Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). Read more on MDN
htmlQuoteElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. See HTMLQuoteElement on MDN
type htmlQuoteElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlScriptElement
type htmlScriptElement = DOM.htmlScriptElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
src
Retrieves the WebApiURL to an external file that contains the source code or data. Read more on MDN
htmlSelectElement
type htmlSelectElement = DOM.htmlSelectElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
type_
Retrieves the type of select control based on the value of the MULTIPLE attribute. Read more on MDN
options
Returns an HTMLOptionsCollection of the list of options. Read more on MDN
selectedIndex
Sets or retrieves the index of the selected option in a select object. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlSlotElement
type htmlSlotElement = DOM.htmlSlotElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSourceElement
Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. See HTMLSourceElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlSourceElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable width: int, mutable height: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSpanElement
A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLSpanElement on MDN
type htmlSpanElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlStyleElement
A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. See HTMLStyleElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlStyleElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable disabled: bool, mutable media: string, sheet: Null.t<cssStyleSheet>,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCaptionElement
type htmlTableCaptionElement = DOM.htmlTableCaptionElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCellElement
type htmlTableCellElement = DOM.htmlTableCellElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
colSpan
Sets or retrieves the number columns in the table that the object should span. Read more on MDN
headers
Sets or retrieves a list of header cells that provide information for the object. Read more on MDN
cellIndex
Retrieves the position of the object in the cells collection of a row. Read more on MDN
scope
Sets or retrieves the group of cells in a table to which the object's information applies. Read more on MDN
htmlTableElement
type htmlTableElement = DOM.htmlTableElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
tBodies
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTableRowElement
type htmlTableRowElement = DOM.htmlTableRowElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rowIndex
Retrieves the position of the object in the rows collection for the table. Read more on MDN
cells
Retrieves a collection of all cells in the table row. Read more on MDN
htmlTableSectionElement
type htmlTableSectionElement = DOM.htmlTableSectionElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTemplateElement
Enables access to the contents of an HTML <template> element. See HTMLTemplateElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlTemplateElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, content: documentFragment, mutable shadowRootMode: string, mutable shadowRootDelegatesFocus: bool, mutable shadowRootClonable: bool, mutable shadowRootSerializable: bool,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTextAreaElement
type htmlTextAreaElement = DOM.htmlTextAreaElementRecord fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
readOnly
Sets or retrieves the value indicated whether the content of the object is read-only. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
value
Retrieves or sets the text in the entry field of the textArea element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
htmlTimeElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. See HTMLTimeElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlTimeElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable dateTime: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTitleElement
Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. See HTMLTitleElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlTitleElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable text: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTrackElement
The HTMLTrackElement See HTMLTrackElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlTrackElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable src: string,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmluListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. See HTMLUListElement on MDN
type htmluListElement = private { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlUnknownElement
An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLUnknownElement on MDN
type htmlUnknownElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlVideoElement
Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. See HTMLVideoElement on MDN TODO: mark as private once mutating fields of private records is allowed
type htmlVideoElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, mutable hidden: unknown, mutable inert: bool, mutable accessKey: string, accessKeyLabel: string, mutable draggable: bool, mutable spellcheck: bool, mutable autocapitalize: string, mutable innerText: string, mutable outerText: string, mutable popover: Null.t<string>, offsetParent: Null.t<DOM.element>, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: DOM.cssStyleDeclaration, attributeStyleMap: DOM.stylePropertyMap, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: DOM.domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, error: Null.t<mediaError>, mutable src: string, mutable srcObject: Null.t<mediaProvider>, currentSrc: string, mutable crossOrigin: Null.t<string>, networkState: int, mutable preload: string, buffered: timeRanges, readyState: int, mutable currentTime: float, duration: float, paused: bool, mutable defaultPlaybackRate: float, mutable playbackRate: float, mutable preservesPitch: bool, seekable: timeRanges, ended: bool, mutable autoplay: bool, mutable loop: bool, mutable controls: bool, mutable volume: float, mutable muted: bool, mutable defaultMuted: bool, textTracks: textTrackList, sinkId: string, remote: remotePlayback, mutable disableRemotePlayback: bool, mutable width: int, mutable height: int, videoWidth: int, videoHeight: int, mutable poster: string, mutable disablePictureInPicture: bool,}Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
src
The address or WebApiURL of the a media resource that is to be considered. Read more on MDN
currentSrc
Gets the address or WebApiURL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
videoWidth
Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
videoHeight
Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
poster
Gets or sets a WebApiURL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. Read more on MDN
idleRequestOptions
type idleRequestOptions = {mutable timeout?: int}Record fields
timeout
imageBitmapOptions
type imageBitmapOptions = { mutable imageOrientation?: imageOrientation, mutable premultiplyAlpha?: premultiplyAlpha, mutable colorSpaceConversion?: colorSpaceConversion, mutable resizeWidth?: int, mutable resizeHeight?: int, mutable resizeQuality?: resizeQuality,}Record fields
imageOrientation
premultiplyAlpha
colorSpaceConversion
resizeWidth
resizeHeight
resizeQuality
imageBitmapSource
type imageBitmapSourceimageData
The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). See ImageData on MDN
type imageData = private { width: int, height: int, data: Uint8ClampedArray.t, colorSpace: predefinedColorSpace,}Record fields
width
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
height
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
data
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. Read more on MDN
imageDataSettings
type imageDataSettings = { mutable colorSpace?: predefinedColorSpace,}Record fields
colorSpace
imageOrientation
type imageOrientation = | @as("flipY") FlipY | @as("from-image") FromImage | @as("none") NoneinsertPosition
type insertPosition = | @as("afterbegin") Afterbegin | @as("afterend") Afterend | @as("beforebegin") Beforebegin | @as("beforeend") BeforeenditerationCompositeOperation
type iterationCompositeOperation = | @as("accumulate") Accumulate | @as("replace") ReplacekeyframeAnimationOptions
type keyframeAnimationOptions = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable composite?: compositeOperation, mutable pseudoElement?: Null.t<string>, mutable iterationComposite?: iterationCompositeOperation, mutable id?: string, mutable timeline?: Null.t<animationTimeline>,}Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
id
timeline
keyframeEffectOptions
type keyframeEffectOptions = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable composite?: compositeOperation, mutable pseudoElement?: Null.t<string>, mutable iterationComposite?: iterationCompositeOperation,}Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
location
@editor.completeFrom(Window) The location (WebApiURL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. See Location on MDN
type location = DOM.location = { mutable href: string, origin: string, mutable protocol: string, mutable host: string, mutable hostname: string, mutable port: string, mutable pathname: string, mutable search: string, mutable hash: string, ancestorOrigins: DOM.domStringList,}Record fields
href
Returns the Location object's URL.
Can be set, to navigate to the given URL. Read more on MDN
protocol
Returns the Location object's WebApiURL's scheme.
Can be set, to navigate to the same WebApiURL with a changed scheme. Read more on MDN
host
Returns the Location object's WebApiURL's host and port (if different from the default port for the scheme).
Can be set, to navigate to the same WebApiURL with a changed host and port. Read more on MDN
hostname
Returns the Location object's WebApiURL's host.
Can be set, to navigate to the same WebApiURL with a changed host. Read more on MDN
port
Returns the Location object's WebApiURL's port.
Can be set, to navigate to the same WebApiURL with a changed port. Read more on MDN
pathname
Returns the Location object's WebApiURL's path.
Can be set, to navigate to the same WebApiURL with a changed path. Read more on MDN
search
Returns the Location object's WebApiURL's query (includes leading "?" if non-empty).
Can be set, to navigate to the same WebApiURL with a changed query (ignores leading "?"). Read more on MDN
hash
Returns the Location object's WebApiURL's fragment (includes leading "#" if non-empty).
Can be set, to navigate to the same WebApiURL with a changed fragment (ignores leading "#"). Read more on MDN
ancestorOrigins
Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. Read more on MDN
mediaError
type mediaError = DOM.mediaErrorRecord fields
mediaKeySystemConfiguration
type mediaKeySystemConfiguration = BaseEncryptedMediaExtensions.mediaKeySystemConfigurationRecord fields
label
initDataTypes
audioCapabilities
videoCapabilities
distinctiveIdentifier
persistentState
sessionTypes
mediaList
See MediaList on MDN TODO: mark as private once mutating fields of private records is allowed
type mediaList = {mutable mediaText: string, length: int}Record fields
mediaProvider
type mediaProvider = unknownmediaQueryList
type mediaQueryList = DOM.mediaQueryListRecord fields
namedNodeMap
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. See NamedNodeMap on MDN
type namedNodeMap = private {length: int}Record fields
navigator
The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. See Navigator on MDN
type navigator = DOM.navigatornode
type node = DOM.nodeRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
nodeFilter
type nodeFilter = DOM.nodeFilternodeIterator
type nodeIterator = DOM.nodeIteratorRecord fields
nodeList
type nodeList<'a> = DOM.nodeList<'a>Record fields
offscreenRenderingContext
type offscreenRenderingContext = unknownoptionalEffectTiming
type optionalEffectTiming = { mutable delay?: float, mutable endDelay?: float, mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable duration?: unknown, mutable direction?: playbackDirection, mutable easing?: string, mutable playbackRate?: float,}Record fields
delay
endDelay
fill
iterationStart
iterations
duration
direction
easing
playbackRate
orientationType
type orientationType = | @as("landscape-primary") LandscapePrimary | @as("landscape-secondary") LandscapeSecondary | @as("portrait-primary") PortraitPrimary | @as("portrait-secondary") PortraitSecondaryplaneLayout
type planeLayout = { mutable offset: int, mutable stride: int,}Record fields
offset
stride
playbackDirection
type playbackDirection = | @as("alternate") Alternate | @as("alternate-reverse") AlternateReverse | @as("normal") Normal | @as("reverse") ReversepointerLockOptions
type pointerLockOptions = { mutable unadjustedMovement?: bool,}Record fields
unadjustedMovement
predefinedColorSpace
type predefinedColorSpace = | @as("display-p3") DisplayP3 | @as("srgb") SrgbpremultiplyAlpha
type premultiplyAlpha = | @as("default") Default | @as("none") None | @as("premultiply") PremultiplyprocessingInstruction
type processingInstruction = DOM.processingInstructionRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
range
type range = DOM.rangeRecord fields
commonAncestorContainer
Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. Read more on MDN
referrerPolicy
type referrerPolicy = | @as("no-referrer") NoReferrer | @as("no-referrer-when-downgrade") NoReferrerWhenDowngrade | @as("origin") Origin | @as("origin-when-cross-origin") OriginWhenCrossOrigin | @as("same-origin") SameOrigin | @as("strict-origin") StrictOrigin | @as("strict-origin-when-cross-origin") StrictOriginWhenCrossOrigin | @as("unsafe-url") UnsafeUrlremotePlayback
type remotePlayback = RemotePlaybackTypes.remotePlaybackRecord fields
remotePlaybackState
type remotePlaybackState = | @as("connected") Connected | @as("connecting") Connecting | @as("disconnected") DisconnectedrenderingContext
type renderingContext = unknownresizeQuality
type resizeQuality = | @as("high") High | @as("low") Low | @as("medium") Medium | @as("pixelated") Pixelatedscreen
A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. See Screen on MDN
type screen = { availWidth: int, availHeight: int, width: int, height: int, colorDepth: int, pixelDepth: int, orientation: screenOrientation,}Record fields
screenOrientation
type screenOrientation = private { type_: orientationType, angle: int,}Record fields
scrollBehavior
type scrollBehavior = | @as("auto") Auto | @as("instant") Instant | @as("smooth") SmoothscrollIntoViewOptions
type scrollIntoViewOptions = { mutable behavior?: scrollBehavior, mutable block?: scrollLogicalPosition, mutable inline?: scrollLogicalPosition,}Record fields
behavior
block
inline
scrollLogicalPosition
type scrollLogicalPosition = | @as("center") Center | @as("end") End | @as("nearest") Nearest | @as("start") StartscrollOptions
type scrollOptions = {mutable behavior?: scrollBehavior}Record fields
behavior
scrollToOptions
type scrollToOptions = { mutable behavior?: scrollBehavior, mutable left?: float, mutable top?: float,}Record fields
behavior
left
top
selection
type selection = DOM.selectionRecord fields
selectionMode
type selectionMode = | @as("end") End | @as("preserve") Preserve | @as("select") Select | @as("start") StartshadowRoot
type shadowRoot = DOM.shadowRootRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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. Read more on MDN
shadowRootInit
type shadowRootInit = { mutable mode: shadowRootMode, mutable delegatesFocus?: bool, mutable slotAssignment?: slotAssignmentMode, mutable serializable?: bool,}Record fields
mode
delegatesFocus
slotAssignment
serializable
shadowRootMode
type shadowRootMode = | @as("closed") Closed | @as("open") OpenshareData
type shareData = { mutable files?: array<file>, mutable title?: string, mutable text?: string, mutable url?: string,}Record fields
files
title
text
url
slotAssignmentMode
type slotAssignmentMode = | @as("manual") Manual | @as("named") NamedstructuredSerializeOptions
type structuredSerializeOptions = ChannelMessagingTypes.structuredSerializeOptionsRecord fields
transfer
stylePropertyMap
type stylePropertyMap = private {size: int}Record fields
stylePropertyMapReadOnly
type stylePropertyMapReadOnly = private {size: int}Record fields
styleSheet
type styleSheet = DOM.styleSheetRecord fields
svgAnimatedLength
Used for attributes of basic type <length> which can be animated. See SVGAnimatedLength on MDN
type svgAnimatedLength = { baseVal: svgLength, animVal: svgLength,}Record fields
svgAnimatedPreserveAspectRatio
Used for attributes of type SVGPreserveAspectRatio which can be animated. See SVGAnimatedPreserveAspectRatio on MDN
type svgAnimatedPreserveAspectRatio = {}svgBoundingBoxOptions
type svgBoundingBoxOptions = { mutable fill?: bool, mutable stroke?: bool, mutable markers?: bool, mutable clipped?: bool,}Record fields
fill
stroke
markers
clipped
svgElement
All of the SVG WebApiDOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. See SVGElement on MDN
type svgElement = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, children: DOM.htmlCollection<DOM.element>, firstElementChild: Null.t<DOM.element>, lastElementChild: Null.t<DOM.element>, childElementCount: int, previousElementSibling: Null.t<DOM.element>, nextElementSibling: Null.t<DOM.element>, assignedSlot: Null.t<DOM.htmlSlotElement>, mutable ariaAtomic: Null.t<string>, mutable ariaAutoComplete: Null.t<string>, mutable ariaBrailleLabel: Null.t<string>, mutable ariaBrailleRoleDescription: Null.t<string>, mutable ariaBusy: Null.t<string>, mutable ariaChecked: Null.t<string>, mutable ariaColCount: Null.t<string>, mutable ariaColIndex: Null.t<string>, mutable ariaColIndexText: Null.t<string>, mutable ariaColSpan: Null.t<string>, mutable ariaCurrent: Null.t<string>, mutable ariaDescription: Null.t<string>, mutable ariaDisabled: Null.t<string>, mutable ariaExpanded: Null.t<string>, mutable ariaHasPopup: Null.t<string>, mutable ariaHidden: Null.t<string>, mutable ariaKeyShortcuts: Null.t<string>, mutable ariaLabel: Null.t<string>, mutable ariaLevel: Null.t<string>, mutable ariaLive: Null.t<string>, mutable ariaModal: Null.t<string>, mutable ariaMultiLine: Null.t<string>, mutable ariaMultiSelectable: Null.t<string>, mutable ariaOrientation: Null.t<string>, mutable ariaPlaceholder: Null.t<string>, mutable ariaPosInSet: Null.t<string>, mutable ariaPressed: Null.t<string>, mutable ariaReadOnly: Null.t<string>, mutable ariaRequired: Null.t<string>, mutable ariaRoleDescription: Null.t<string>, mutable ariaRowCount: Null.t<string>, mutable ariaRowIndex: Null.t<string>, mutable ariaRowIndexText: Null.t<string>, mutable ariaRowSpan: Null.t<string>, mutable ariaSelected: Null.t<string>, mutable ariaSetSize: Null.t<string>, mutable ariaSort: Null.t<string>, mutable ariaValueMax: Null.t<string>, mutable ariaValueMin: Null.t<string>, mutable ariaValueNow: Null.t<string>, mutable ariaValueText: Null.t<string>, dataset: domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, style: cssStyleDeclaration, attributeStyleMap: stylePropertyMap,}Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgGraphicsElement
SVG elements whose primary purpose is to directly render graphics into a group. See SVGGraphicsElement on MDN
type svgGraphicsElement = private { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, children: DOM.htmlCollection<DOM.element>, firstElementChild: Null.t<DOM.element>, lastElementChild: Null.t<DOM.element>, childElementCount: int, previousElementSibling: Null.t<DOM.element>, nextElementSibling: Null.t<DOM.element>, assignedSlot: Null.t<DOM.htmlSlotElement>, mutable ariaAtomic: Null.t<string>, mutable ariaAutoComplete: Null.t<string>, mutable ariaBrailleLabel: Null.t<string>, mutable ariaBrailleRoleDescription: Null.t<string>, mutable ariaBusy: Null.t<string>, mutable ariaChecked: Null.t<string>, mutable ariaColCount: Null.t<string>, mutable ariaColIndex: Null.t<string>, mutable ariaColIndexText: Null.t<string>, mutable ariaColSpan: Null.t<string>, mutable ariaCurrent: Null.t<string>, mutable ariaDescription: Null.t<string>, mutable ariaDisabled: Null.t<string>, mutable ariaExpanded: Null.t<string>, mutable ariaHasPopup: Null.t<string>, mutable ariaHidden: Null.t<string>, mutable ariaKeyShortcuts: Null.t<string>, mutable ariaLabel: Null.t<string>, mutable ariaLevel: Null.t<string>, mutable ariaLive: Null.t<string>, mutable ariaModal: Null.t<string>, mutable ariaMultiLine: Null.t<string>, mutable ariaMultiSelectable: Null.t<string>, mutable ariaOrientation: Null.t<string>, mutable ariaPlaceholder: Null.t<string>, mutable ariaPosInSet: Null.t<string>, mutable ariaPressed: Null.t<string>, mutable ariaReadOnly: Null.t<string>, mutable ariaRequired: Null.t<string>, mutable ariaRoleDescription: Null.t<string>, mutable ariaRowCount: Null.t<string>, mutable ariaRowIndex: Null.t<string>, mutable ariaRowIndexText: Null.t<string>, mutable ariaRowSpan: Null.t<string>, mutable ariaSelected: Null.t<string>, mutable ariaSetSize: Null.t<string>, mutable ariaSort: Null.t<string>, mutable ariaValueMax: Null.t<string>, mutable ariaValueMin: Null.t<string>, mutable ariaValueNow: Null.t<string>, mutable ariaValueText: Null.t<string>, dataset: domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, style: cssStyleDeclaration, attributeStyleMap: stylePropertyMap,}Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgImageElement
Corresponds to the <image> element. See SVGImageElement on MDN
type svgImageElement = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<DOM.document>, parentNode: Null.t<DOM.node>, parentElement: Null.t<DOM.htmlElement>, childNodes: DOM.nodeList<DOM.node>, firstChild: Null.t<DOM.node>, lastChild: Null.t<DOM.node>, previousSibling: Null.t<DOM.node>, nextSibling: Null.t<DOM.node>, mutable nodeValue: Null.t<string>, mutable textContent: Null.t<string>, namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: DOM.domTokenList, mutable slot: string, attributes: DOM.namedNodeMap, shadowRoot: Null.t<DOM.shadowRoot>, part: DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, children: DOM.htmlCollection<DOM.element>, firstElementChild: Null.t<DOM.element>, lastElementChild: Null.t<DOM.element>, childElementCount: int, previousElementSibling: Null.t<DOM.element>, nextElementSibling: Null.t<DOM.element>, assignedSlot: Null.t<DOM.htmlSlotElement>, mutable ariaAtomic: Null.t<string>, mutable ariaAutoComplete: Null.t<string>, mutable ariaBrailleLabel: Null.t<string>, mutable ariaBrailleRoleDescription: Null.t<string>, mutable ariaBusy: Null.t<string>, mutable ariaChecked: Null.t<string>, mutable ariaColCount: Null.t<string>, mutable ariaColIndex: Null.t<string>, mutable ariaColIndexText: Null.t<string>, mutable ariaColSpan: Null.t<string>, mutable ariaCurrent: Null.t<string>, mutable ariaDescription: Null.t<string>, mutable ariaDisabled: Null.t<string>, mutable ariaExpanded: Null.t<string>, mutable ariaHasPopup: Null.t<string>, mutable ariaHidden: Null.t<string>, mutable ariaKeyShortcuts: Null.t<string>, mutable ariaLabel: Null.t<string>, mutable ariaLevel: Null.t<string>, mutable ariaLive: Null.t<string>, mutable ariaModal: Null.t<string>, mutable ariaMultiLine: Null.t<string>, mutable ariaMultiSelectable: Null.t<string>, mutable ariaOrientation: Null.t<string>, mutable ariaPlaceholder: Null.t<string>, mutable ariaPosInSet: Null.t<string>, mutable ariaPressed: Null.t<string>, mutable ariaReadOnly: Null.t<string>, mutable ariaRequired: Null.t<string>, mutable ariaRoleDescription: Null.t<string>, mutable ariaRowCount: Null.t<string>, mutable ariaRowIndex: Null.t<string>, mutable ariaRowIndexText: Null.t<string>, mutable ariaRowSpan: Null.t<string>, mutable ariaSelected: Null.t<string>, mutable ariaSetSize: Null.t<string>, mutable ariaSort: Null.t<string>, mutable ariaValueMax: Null.t<string>, mutable ariaValueMin: Null.t<string>, mutable ariaValueNow: Null.t<string>, mutable ariaValueText: Null.t<string>, dataset: domStringMap, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, style: cssStyleDeclaration, attributeStyleMap: stylePropertyMap, x: svgAnimatedLength, y: svgAnimatedLength, width: svgAnimatedLength, height: svgAnimatedLength, preserveAspectRatio: svgAnimatedPreserveAspectRatio,}Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgLength
Correspond to the <length> basic data type. See SVGLength on MDN
type svgLength = private {}text
type text = DOM.textRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
timeoutId
type timeoutIdtimeRanges
type timeRanges = DOM.timeRangesRecord fields
treeWalker
type treeWalker = DOM.treeWalkerRecord fields
userActivation
type userActivation = {hasBeenActive: bool, isActive: bool}Record fields
validityState
type validityState = DOM.validityStateRecord fields
validityStateFlags
type validityStateFlags = { mutable valueMissing?: bool, mutable typeMismatch?: bool, mutable patternMismatch?: bool, mutable tooLong?: bool, mutable tooShort?: bool, mutable rangeUnderflow?: bool, mutable rangeOverflow?: bool, mutable stepMismatch?: bool, mutable badInput?: bool, mutable customError?: bool,}Record fields
valueMissing
typeMismatch
patternMismatch
tooLong
tooShort
rangeUnderflow
rangeOverflow
stepMismatch
badInput
customError
vibratePattern
@unboxedtype vibratePattern = Int(int) | IntArray(array<int>)videoColorPrimaries
type videoColorPrimaries = | @as("bt470bg") Bt470bg | @as("bt709") Bt709 | @as("smpte170m") Smpte170mvideoColorSpace
type videoColorSpace = private { primaries: Null.t<videoColorPrimaries>, transfer: Null.t<videoTransferCharacteristics>, matrix: Null.t<videoMatrixCoefficients>, fullRange: Null.t<bool>,}Record fields
videoColorSpaceInit
type videoColorSpaceInit = { mutable primaries?: Null.t<videoColorPrimaries>, mutable transfer?: Null.t<videoTransferCharacteristics>, mutable matrix?: Null.t<videoMatrixCoefficients>, mutable fullRange?: Null.t<bool>,}Record fields
primaries
transfer
matrix
fullRange
videoFrame
type videoFrame = private { format: Null.t<videoPixelFormat>, codedWidth: int, codedHeight: int, codedRect: Null.t<domRectReadOnly>, visibleRect: Null.t<domRectReadOnly>, displayWidth: int, displayHeight: int, duration: Null.t<int>, timestamp: int, colorSpace: videoColorSpace,}Record fields
videoFrameBufferInit
type videoFrameBufferInit = { mutable format: videoPixelFormat, mutable codedWidth: int, mutable codedHeight: int, mutable timestamp: int, mutable duration?: int, mutable layout?: array<planeLayout>, mutable visibleRect?: domRectInit, mutable displayWidth?: int, mutable displayHeight?: int, mutable colorSpace?: videoColorSpaceInit,}Record fields
format
codedWidth
codedHeight
timestamp
duration
layout
visibleRect
displayWidth
displayHeight
colorSpace
videoFrameCallbackMetadata
type videoFrameCallbackMetadata = { mutable presentationTime: float, mutable expectedDisplayTime: float, mutable width: int, mutable height: int, mutable mediaTime: float, mutable presentedFrames: int, mutable processingDuration?: float, mutable captureTime?: float, mutable receiveTime?: float, mutable rtpTimestamp?: int,}Record fields
presentationTime
expectedDisplayTime
width
height
mediaTime
presentedFrames
processingDuration
captureTime
receiveTime
rtpTimestamp
videoFrameCopyToOptions
type videoFrameCopyToOptions = { mutable rect?: domRectInit, mutable layout?: array<planeLayout>, mutable format?: videoPixelFormat, mutable colorSpace?: predefinedColorSpace,}Record fields
rect
layout
format
colorSpace
videoFrameInit
type videoFrameInit = { mutable duration?: int, mutable timestamp?: int, mutable alpha?: alphaOption, mutable visibleRect?: domRectInit, mutable displayWidth?: int, mutable displayHeight?: int,}Record fields
duration
timestamp
alpha
visibleRect
displayWidth
displayHeight
videoMatrixCoefficients
type videoMatrixCoefficients = | @as("bt470bg") Bt470bg | @as("bt709") Bt709 | @as("rgb") Rgb | @as("smpte170m") Smpte170mvideoPixelFormat
type videoPixelFormat = | BGRA | BGRX | I420 | I420A | I422 | I444 | NV12 | RGBA | RGBXvideoPlaybackQuality
type videoPlaybackQuality = DOM.videoPlaybackQualityRecord fields
videoTransferCharacteristics
type videoTransferCharacteristics = | @as("bt709") Bt709 | @as("iec61966-2-1") Iec6196621 | @as("smpte170m") Smpte170mwindow
A window containing a WebApiDOM document; the document property points to the WebApiDOM document loaded in that window. See Window on MDN
type window = DOM.windowwindowPostMessageOptions
type windowPostMessageOptions = { mutable transfer?: array<Dict.t<string>>, mutable targetOrigin?: string,}Record fields
transfer
targetOrigin
xmlDocument
type xmlDocument = DOM.xmlDocumentRecord fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the WebApiURL of the location that referred the user to the current page. Read more on MDN
cookie
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. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
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. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
xPathExpression
This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its WebApiDOM tree. See XPathExpression on MDN
type xPathExpression = private {}xPathNSResolver
type xPathNSResolverxPathResult
The results generated by evaluating an XPath expression within the context of a given node. See XPathResult on MDN
type xPathResult = private { resultType: int, numberValue: float, stringValue: string, booleanValue: bool, singleNodeValue: Null.t<node>, invalidIteratorState: bool, snapshotLength: int,}