Skip to content

DOMAPI

Types

abstractRange

type abstractRange = {
startContainer: node,
startOffset: int,
endContainer: node,
endOffset: int,
collapsed: bool,
}

Record fields

startContainer

Returns range's start node. Read more on MDN

startOffset
int

Returns range's start offset. Read more on MDN

endContainer

Returns range's end node. Read more on MDN

endOffset
int

Returns range's end offset. Read more on MDN

collapsed
bool

Returns true if range is collapsed, and false otherwise. Read more on MDN

alphaOption

type alphaOption = @as("discard") Discard | @as("keep") Keep

animation

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.t<animation>,
finished: Promise.t<animation>,
mutable startTime: Null.t<float>,
mutable currentTime: Null.t<float>,
}

Record fields

id
string
timeline
Null.t< animationTimeline >
playbackRate
float
pending
bool
ready
Promise.t< animation >
finished
Promise.t< animation >
startTime
Null.t< float >
currentTime
Null.t< float >

Module

There are methods and helpers defined in Animation .

animationEffect

type animationEffect = {}

Module

There are methods and helpers defined in AnimationEffect .

animationPlayState

type animationPlayState =
| @as("finished") Finished
| @as("idle") Idle
| @as("paused") Paused
| @as("running") Running

animationReplaceState

type animationReplaceState =
| @as("active") Active
| @as("persisted") Persisted
| @as("removed") Removed

animationTimeline

type animationTimeline = {currentTime: Null.t<float>}

Record fields

currentTime
Null.t< float >

assignedNodesOptions

type assignedNodesOptions = {mutable flatten?: bool}

Record fields

flatten
option< bool >

attr

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

type attr = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
name: string,
mutable value: string,
ownerElement: Null.t<element>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
namespaceURI
Null.t< string >
prefix
Null.t< string >
localName
string
name
string
value
string
ownerElement
Null.t< element >

autoFillBase

type autoFillBase = @as("off") Off | @as("on") On

barProp

type barProp = {visible: bool}

Record fields

visible
bool

blobCallback

type blobCallback = WebAPI.FileAPI.blob => unit

canPlayTypeResult

type canPlayTypeResult =
| @as("maybe") Maybe
| @as("probably") Probably

canvasContext2DAttributes

type canvasContext2DAttributes = {
alpha: bool,
colorspace?: predefinedColorSpace,
desynchronized: bool,
willReadFrequently: bool,
}

Record fields

alpha
bool
colorspace
desynchronized
bool
willReadFrequently
bool

canvasRenderingContext2D

The CanvasRenderingContext2D interface, part of the Canvas 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 canvasRenderingContext2D = {
canvas: htmlCanvasElement,
mutable globalAlpha: float,
mutable globalCompositeOperation: WebAPI.CanvasAPI.globalCompositeOperation,
mutable imageSmoothingEnabled: bool,
mutable imageSmoothingQuality: WebAPI.CanvasAPI.imageSmoothingQuality,
mutable strokeStyle: unknown,
mutable fillStyle: fillStyle,
mutable shadowOffsetX: float,
mutable shadowOffsetY: float,
mutable shadowBlur: float,
mutable shadowColor: string,
mutable filter: string,
mutable lineWidth: float,
mutable lineCap: WebAPI.CanvasAPI.canvasLineCap,
mutable lineJoin: WebAPI.CanvasAPI.canvasLineJoin,
mutable miterLimit: float,
mutable lineDashOffset: float,
mutable font: string,
mutable textAlign: WebAPI.CanvasAPI.canvasTextAlign,
mutable textBaseline: WebAPI.CanvasAPI.canvasTextBaseline,
mutable direction: WebAPI.CanvasAPI.canvasDirection,
mutable letterSpacing: string,
mutable fontKerning: WebAPI.CanvasAPI.canvasFontKerning,
mutable fontStretch: WebAPI.CanvasAPI.canvasFontStretch,
mutable fontVariantCaps: WebAPI.CanvasAPI.canvasFontVariantCaps,
mutable textRendering: WebAPI.CanvasAPI.canvasTextRendering,
mutable wordSpacing: string,
}

Record fields

globalAlpha
float
imageSmoothingEnabled
bool
strokeStyle
unknown
shadowOffsetX
float
shadowOffsetY
float
shadowBlur
float
shadowColor
string
filter
string
lineWidth
float
miterLimit
float
lineDashOffset
float
font
string
letterSpacing
string
wordSpacing
string

Module

There are methods and helpers defined in CanvasRenderingContext2D .

caretPosition

type caretPosition = {}

Module

There are methods and helpers defined in CaretPosition .

caretPositionFromPointOptions

type caretPositionFromPointOptions = {
mutable shadowRoots?: array<shadowRoot>,
}

Record fields

shadowRoots
option< array< shadowRoot > >

cdataSection

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

type cdataSection = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable data: string,
length: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
wholeText: string,
assignedSlot: Null.t<htmlSlotElement>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
data
string
length
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

wholeText
string

Returns the combined data of all direct Text node siblings. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >

characterData

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

type characterData = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable data: string,
length: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
data
string
length
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

Module

There are methods and helpers defined in CharacterData .

checkVisibilityOptions

type checkVisibilityOptions = {
mutable checkOpacity?: bool,
mutable checkVisibilityCSS?: bool,
mutable contentVisibilityAuto?: bool,
mutable opacityProperty?: bool,
mutable visibilityProperty?: bool,
}

Record fields

checkOpacity
option< bool >
checkVisibilityCSS
option< bool >
contentVisibilityAuto
option< bool >
opacityProperty
option< bool >
visibilityProperty
option< bool >

colorSpaceConversion

type colorSpaceConversion =
| @as("default") Default
| @as("none") None

comment

Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. See Comment on MDN

type comment = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable data: string,
length: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
data
string
length
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

Module

There are methods and helpers defined in Comment .

compositeOperation

type compositeOperation =
| @as("accumulate") Accumulate
| @as("add") Add
| @as("replace") Replace

computedEffectTiming

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
option< fillMode >
iterationStart
option< float >
iterations
option< float >
direction
option< playbackDirection >
easing
option< string >
delay
option< float >
endDelay
option< float >
playbackRate
option< float >
duration
option< unknown >
progress
option< Null.t< float > >
currentIteration
option< Null.t< float > >
startTime
option< float >
endTime
option< float >
activeDuration
option< float >
localTime
option< Null.t< float > >

cssRule

A single CSS rule. There are several types of rules, listed in the Type constants section below. See CSSRule on MDN

type cssRule = {
mutable cssText: string,
parentRule: Null.t<cssRule>,
parentStyleSheet: Null.t<cssStyleSheet>,
}

Record fields

cssText
string
parentRule
Null.t< cssRule >
parentStyleSheet
Null.t< cssStyleSheet >

cssRuleList

A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. See CSSRuleList on MDN

type cssRuleList = {length: int}

Record fields

length
int

cssStyleDeclaration

An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. See CSSStyleDeclaration on MDN

type cssStyleDeclaration = {
mutable cssText: string,
length: int,
parentRule: Null.t<cssRule>,
mutable cx: string,
mutable cy: string,
mutable r: string,
mutable rx: string,
mutable ry: string,
mutable x: string,
mutable y: string,
mutable vectorEffect: string,
mutable d: string,
mutable textAnchor: string,
mutable fill: string,
mutable stroke: string,
mutable markerStart: string,
mutable markerMid: string,
mutable markerEnd: string,
mutable marker: string,
mutable paintOrder: string,
mutable colorInterpolation: string,
mutable shapeRendering: string,
mutable textRendering: string,
mutable pointerEvents: string,
mutable stopColor: string,
mutable stopOpacity: string,
mutable webkitTextFillColor: string,
mutable webkitTextStrokeColor: string,
mutable webkitTextStrokeWidth: string,
mutable webkitTextStroke: string,
mutable touchAction: string,
mutable positionArea: string,
mutable top: string,
mutable left: string,
mutable right: string,
mutable bottom: string,
mutable justifySelf: string,
mutable alignSelf: string,
mutable justifyItems: string,
mutable alignItems: string,
mutable width: string,
mutable height: string,
mutable minWidth: string,
mutable minHeight: string,
mutable maxWidth: string,
mutable maxHeight: string,
mutable marginTop: string,
mutable marginLeft: string,
mutable marginRight: string,
mutable marginBottom: string,
mutable animationDuration: string,
mutable animationComposition: string,
mutable animationName: string,
mutable animationTimingFunction: string,
mutable animationIterationCount: string,
mutable animationDirection: string,
mutable animationPlayState: string,
mutable animationDelay: string,
mutable animationFillMode: string,
mutable animation: string,
mutable all: string,
mutable containerType: string,
mutable containerName: string,
mutable container: string,
mutable contain: string,
mutable contentVisibility: string,
mutable fontFamily: string,
mutable fontWeight: string,
mutable fontStyle: string,
mutable fontSize: string,
mutable fontSizeAdjust: string,
mutable font: string,
mutable fontSynthesisWeight: string,
mutable fontSynthesisStyle: string,
mutable fontSynthesisSmallCaps: string,
mutable fontSynthesis: string,
mutable fontKerning: string,
mutable fontVariantLigatures: string,
mutable fontVariantPosition: string,
mutable fontVariantCaps: string,
mutable fontVariantNumeric: string,
mutable fontVariantAlternates: string,
mutable fontVariantEastAsian: string,
mutable fontVariant: string,
mutable fontFeatureSettings: string,
mutable fontOpticalSizing: string,
mutable fontVariationSettings: string,
mutable fontPalette: string,
mutable fontStretch: string,
mutable objectFit: string,
mutable clipPath: string,
mutable clipRule: string,
mutable maskImage: string,
mutable maskMode: string,
mutable maskRepeat: string,
mutable maskPosition: string,
mutable maskClip: string,
mutable maskOrigin: string,
mutable maskSize: string,
mutable maskComposite: string,
mutable mask: string,
mutable maskType: string,
mutable transitionBehavior: string,
mutable transitionProperty: string,
mutable transitionDuration: string,
mutable transitionTimingFunction: string,
mutable transitionDelay: string,
mutable transition: string,
mutable viewTransitionName: string,
mutable zoom: string,
mutable filter: string,
mutable colorInterpolationFilters: string,
mutable display: string,
mutable textTransform: string,
mutable mathStyle: string,
mutable mathDepth: string,
mutable zIndex: string,
mutable pageBreakBefore: string,
mutable pageBreakAfter: string,
mutable pageBreakInside: string,
mutable mixBlendMode: string,
mutable isolation: string,
mutable backgroundBlendMode: string,
mutable alignContent: string,
mutable justifyContent: string,
mutable placeContent: string,
mutable placeSelf: string,
mutable placeItems: string,
mutable rowGap: string,
mutable columnGap: string,
mutable gap: string,
mutable backgroundRepeat: string,
mutable backgroundPosition: string,
mutable backgroundPositionX: string,
mutable backgroundPositionY: string,
mutable backgroundClip: string,
mutable backgroundColor: string,
mutable backgroundImage: string,
mutable backgroundAttachment: string,
mutable backgroundOrigin: string,
mutable backgroundSize: string,
mutable background: string,
mutable borderStyle: string,
mutable borderWidth: string,
mutable border: string,
mutable borderImageSource: string,
mutable borderImageSlice: string,
mutable borderImageWidth: string,
mutable borderImageOutset: string,
mutable borderImageRepeat: string,
mutable borderImage: string,
mutable borderTopColor: string,
mutable borderRightColor: string,
mutable borderBottomColor: string,
mutable borderLeftColor: string,
mutable borderBlockStartColor: string,
mutable borderBlockEndColor: string,
mutable borderInlineStartColor: string,
mutable borderInlineEndColor: string,
mutable borderColor: string,
mutable borderBlockColor: string,
mutable borderInlineColor: string,
mutable borderTopStyle: string,
mutable borderRightStyle: string,
mutable borderBottomStyle: string,
mutable borderLeftStyle: string,
mutable borderBlockStartStyle: string,
mutable borderBlockEndStyle: string,
mutable borderInlineStartStyle: string,
mutable borderInlineEndStyle: string,
mutable borderBlockStyle: string,
mutable borderInlineStyle: string,
mutable borderTopWidth: string,
mutable borderRightWidth: string,
mutable borderBottomWidth: string,
mutable borderLeftWidth: string,
mutable borderBlockStartWidth: string,
mutable borderBlockEndWidth: string,
mutable borderInlineStartWidth: string,
mutable borderInlineEndWidth: string,
mutable borderBlockWidth: string,
mutable borderInlineWidth: string,
mutable borderTop: string,
mutable borderRight: string,
mutable borderBottom: string,
mutable borderLeft: string,
mutable borderBlockStart: string,
mutable borderBlockEnd: string,
mutable borderInlineStart: string,
mutable borderInlineEnd: string,
mutable borderBlock: string,
mutable borderInline: string,
mutable borderTopLeftRadius: string,
mutable borderTopRightRadius: string,
mutable borderBottomRightRadius: string,
mutable borderBottomLeftRadius: string,
mutable borderStartStartRadius: string,
mutable borderStartEndRadius: string,
mutable borderEndStartRadius: string,
mutable borderEndEndRadius: string,
mutable borderRadius: string,
mutable boxShadow: string,
mutable margin: string,
mutable paddingTop: string,
mutable paddingRight: string,
mutable paddingBottom: string,
mutable paddingLeft: string,
mutable padding: string,
mutable breakBefore: string,
mutable breakAfter: string,
mutable breakInside: string,
mutable orphans: string,
mutable widows: string,
mutable boxDecorationBreak: string,
mutable colorScheme: string,
mutable forcedColorAdjust: string,
mutable printColorAdjust: string,
mutable color: string,
mutable opacity: string,
mutable content: string,
mutable quotes: string,
mutable order: string,
mutable visibility: string,
mutable flexDirection: string,
mutable flexWrap: string,
mutable flexFlow: string,
mutable flex: string,
mutable flexGrow: string,
mutable flexShrink: string,
mutable flexBasis: string,
mutable position: string,
mutable float: string,
mutable gridTemplateColumns: string,
mutable gridTemplateRows: string,
mutable gridAutoFlow: string,
mutable gridTemplateAreas: string,
mutable gridTemplate: string,
mutable gridAutoColumns: string,
mutable gridAutoRows: string,
mutable grid: string,
mutable gridRowStart: string,
mutable gridColumnStart: string,
mutable gridRowEnd: string,
mutable gridColumnEnd: string,
mutable gridRow: string,
mutable gridColumn: string,
mutable gridArea: string,
mutable objectPosition: string,
mutable imageRendering: string,
mutable dominantBaseline: string,
mutable verticalAlign: string,
mutable lineHeight: string,
mutable listStyleImage: string,
mutable listStyleType: string,
mutable listStylePosition: string,
mutable listStyle: string,
mutable counterReset: string,
mutable counterIncrement: string,
mutable counterSet: string,
mutable blockSize: string,
mutable inlineSize: string,
mutable minBlockSize: string,
mutable minInlineSize: string,
mutable maxBlockSize: string,
mutable maxInlineSize: string,
mutable marginBlockStart: string,
mutable marginBlockEnd: string,
mutable marginInlineStart: string,
mutable marginInlineEnd: string,
mutable marginBlock: string,
mutable marginInline: string,
mutable paddingBlockStart: string,
mutable paddingBlockEnd: string,
mutable paddingInlineStart: string,
mutable paddingInlineEnd: string,
mutable paddingBlock: string,
mutable paddingInline: string,
mutable columnSpan: string,
mutable columnWidth: string,
mutable columnCount: string,
mutable columns: string,
mutable columnRuleColor: string,
mutable columnRuleStyle: string,
mutable columnRuleWidth: string,
mutable columnRule: string,
mutable columnFill: string,
mutable overflowClipMargin: string,
mutable textOverflow: string,
mutable overflowX: string,
mutable overflowY: string,
mutable overflow: string,
mutable scrollBehavior: string,
mutable scrollbarGutter: string,
mutable overscrollBehavior: string,
mutable overscrollBehaviorX: string,
mutable overscrollBehaviorY: string,
mutable overscrollBehaviorInline: string,
mutable overscrollBehaviorBlock: string,
mutable clear: string,
mutable page: string,
mutable insetBlockStart: string,
mutable insetInlineStart: string,
mutable insetBlockEnd: string,
mutable insetInlineEnd: string,
mutable insetBlock: string,
mutable insetInline: string,
mutable inset: string,
mutable rubyPosition: string,
mutable rubyAlign: string,
mutable overflowAnchor: string,
mutable scrollSnapType: string,
mutable scrollPadding: string,
mutable scrollMargin: string,
mutable scrollSnapAlign: string,
mutable scrollSnapStop: string,
mutable scrollPaddingTop: string,
mutable scrollPaddingRight: string,
mutable scrollPaddingBottom: string,
mutable scrollPaddingLeft: string,
mutable scrollPaddingInlineStart: string,
mutable scrollPaddingBlockStart: string,
mutable scrollPaddingInlineEnd: string,
mutable scrollPaddingBlockEnd: string,
mutable scrollPaddingBlock: string,
mutable scrollPaddingInline: string,
mutable scrollMarginTop: string,
mutable scrollMarginRight: string,
mutable scrollMarginBottom: string,
mutable scrollMarginLeft: string,
mutable scrollMarginBlockStart: string,
mutable scrollMarginInlineStart: string,
mutable scrollMarginBlockEnd: string,
mutable scrollMarginInlineEnd: string,
mutable scrollMarginBlock: string,
mutable scrollMarginInline: string,
mutable scrollbarColor: string,
mutable scrollbarWidth: string,
mutable shapeOutside: string,
mutable shapeImageThreshold: string,
mutable shapeMargin: string,
mutable aspectRatio: string,
mutable containIntrinsicWidth: string,
mutable containIntrinsicHeight: string,
mutable containIntrinsicBlockSize: string,
mutable containIntrinsicInlineSize: string,
mutable containIntrinsicSize: string,
mutable boxSizing: string,
mutable tableLayout: string,
mutable borderCollapse: string,
mutable borderSpacing: string,
mutable captionSide: string,
mutable emptyCells: string,
mutable whiteSpace: string,
mutable whiteSpaceCollapse: string,
mutable tabSize: string,
mutable textWrapMode: string,
mutable textWrapStyle: string,
mutable textWrap: string,
mutable wordBreak: string,
mutable lineBreak: string,
mutable hyphens: string,
mutable hyphenateCharacter: string,
mutable overflowWrap: string,
mutable textAlign: string,
mutable textAlignLast: string,
mutable wordSpacing: string,
mutable letterSpacing: string,
mutable textIndent: string,
mutable textDecorationLine: string,
mutable textDecorationStyle: string,
mutable textDecorationColor: string,
mutable textDecorationThickness: string,
mutable textDecoration: string,
mutable textUnderlinePosition: string,
mutable textUnderlineOffset: string,
mutable textDecorationSkipInk: string,
mutable textEmphasisStyle: string,
mutable textEmphasisColor: string,
mutable textEmphasis: string,
mutable textEmphasisPosition: string,
mutable textShadow: string,
mutable translate: string,
mutable rotate: string,
mutable scale: string,
mutable transformStyle: string,
mutable perspective: string,
mutable perspectiveOrigin: string,
mutable backfaceVisibility: string,
mutable transform: string,
mutable transformOrigin: string,
mutable transformBox: string,
mutable outline: string,
mutable outlineWidth: string,
mutable outlineStyle: string,
mutable outlineColor: string,
mutable outlineOffset: string,
mutable resize: string,
mutable cursor: string,
mutable caretColor: string,
mutable userSelect: string,
mutable accentColor: string,
mutable appearance: string,
mutable willChange: string,
mutable direction: string,
mutable unicodeBidi: string,
mutable writingMode: string,
mutable textOrientation: string,
mutable textCombineUpright: string,
mutable fillRule: string,
mutable fillOpacity: string,
mutable strokeWidth: string,
mutable strokeLinecap: string,
mutable strokeLinejoin: string,
mutable strokeMiterlimit: string,
mutable strokeDasharray: string,
mutable strokeDashoffset: string,
mutable strokeOpacity: string,
mutable backdropFilter: string,
mutable offsetPath: string,
mutable offsetDistance: string,
mutable offsetPosition: string,
mutable offsetAnchor: string,
mutable offsetRotate: string,
mutable offset: string,
mutable cssFloat: string,
}

Record fields

cssText
string
length
int
parentRule
Null.t< cssRule >
cx
string
cy
string
r
string
rx
string
ry
string
x
string
y
string
vectorEffect
string
d
string
textAnchor
string
fill
string
stroke
string
markerStart
string
markerMid
string
markerEnd
string
marker
string
paintOrder
string
colorInterpolation
string
shapeRendering
string
textRendering
string
pointerEvents
string
stopColor
string
stopOpacity
string
webkitTextFillColor
string
webkitTextStrokeColor
string
webkitTextStrokeWidth
string
webkitTextStroke
string
touchAction
string
positionArea
string
top
string
left
string
right
string
bottom
string
justifySelf
string
alignSelf
string
justifyItems
string
alignItems
string
width
string
height
string
minWidth
string
minHeight
string
maxWidth
string
maxHeight
string
marginTop
string
marginLeft
string
marginRight
string
marginBottom
string
animationDuration
string
animationComposition
string
animationName
string
animationTimingFunction
string
animationIterationCount
string
animationDirection
string
animationPlayState
string
animationDelay
string
animationFillMode
string
animation
string
all
string
containerType
string
containerName
string
container
string
contain
string
contentVisibility
string
fontFamily
string
fontWeight
string
fontStyle
string
fontSize
string
fontSizeAdjust
string
font
string
fontSynthesisWeight
string
fontSynthesisStyle
string
fontSynthesisSmallCaps
string
fontSynthesis
string
fontKerning
string
fontVariantLigatures
string
fontVariantPosition
string
fontVariantCaps
string
fontVariantNumeric
string
fontVariantAlternates
string
fontVariantEastAsian
string
fontVariant
string
fontFeatureSettings
string
fontOpticalSizing
string
fontVariationSettings
string
fontPalette
string
fontStretch
string
objectFit
string
clipPath
string
clipRule
string
maskImage
string
maskMode
string
maskRepeat
string
maskPosition
string
maskClip
string
maskOrigin
string
maskSize
string
maskComposite
string
mask
string
maskType
string
transitionBehavior
string
transitionProperty
string
transitionDuration
string
transitionTimingFunction
string
transitionDelay
string
transition
string
viewTransitionName
string
zoom
string
filter
string
colorInterpolationFilters
string
display
string
textTransform
string
mathStyle
string
mathDepth
string
zIndex
string
pageBreakBefore
string
pageBreakAfter
string
pageBreakInside
string
mixBlendMode
string
isolation
string
backgroundBlendMode
string
alignContent
string
justifyContent
string
placeContent
string
placeSelf
string
placeItems
string
rowGap
string
columnGap
string
gap
string
backgroundRepeat
string
backgroundPosition
string
backgroundPositionX
string
backgroundPositionY
string
backgroundClip
string
backgroundColor
string
backgroundImage
string
backgroundAttachment
string
backgroundOrigin
string
backgroundSize
string
background
string
borderStyle
string
borderWidth
string
border
string
borderImageSource
string
borderImageSlice
string
borderImageWidth
string
borderImageOutset
string
borderImageRepeat
string
borderImage
string
borderTopColor
string
borderRightColor
string
borderBottomColor
string
borderLeftColor
string
borderBlockStartColor
string
borderBlockEndColor
string
borderInlineStartColor
string
borderInlineEndColor
string
borderColor
string
borderBlockColor
string
borderInlineColor
string
borderTopStyle
string
borderRightStyle
string
borderBottomStyle
string
borderLeftStyle
string
borderBlockStartStyle
string
borderBlockEndStyle
string
borderInlineStartStyle
string
borderInlineEndStyle
string
borderBlockStyle
string
borderInlineStyle
string
borderTopWidth
string
borderRightWidth
string
borderBottomWidth
string
borderLeftWidth
string
borderBlockStartWidth
string
borderBlockEndWidth
string
borderInlineStartWidth
string
borderInlineEndWidth
string
borderBlockWidth
string
borderInlineWidth
string
borderTop
string
borderRight
string
borderBottom
string
borderLeft
string
borderBlockStart
string
borderBlockEnd
string
borderInlineStart
string
borderInlineEnd
string
borderBlock
string
borderInline
string
borderTopLeftRadius
string
borderTopRightRadius
string
borderBottomRightRadius
string
borderBottomLeftRadius
string
borderStartStartRadius
string
borderStartEndRadius
string
borderEndStartRadius
string
borderEndEndRadius
string
borderRadius
string
boxShadow
string
margin
string
paddingTop
string
paddingRight
string
paddingBottom
string
paddingLeft
string
padding
string
breakBefore
string
breakAfter
string
breakInside
string
orphans
string
widows
string
boxDecorationBreak
string
colorScheme
string
forcedColorAdjust
string
printColorAdjust
string
color
string
opacity
string
content
string
quotes
string
order
string
visibility
string
flexDirection
string
flexWrap
string
flexFlow
string
flex
string
flexGrow
string
flexShrink
string
flexBasis
string
position
string
float
string
gridTemplateColumns
string
gridTemplateRows
string
gridAutoFlow
string
gridTemplateAreas
string
gridTemplate
string
gridAutoColumns
string
gridAutoRows
string
grid
string
gridRowStart
string
gridColumnStart
string
gridRowEnd
string
gridColumnEnd
string
gridRow
string
gridColumn
string
gridArea
string
objectPosition
string
imageRendering
string
dominantBaseline
string
verticalAlign
string
lineHeight
string
listStyleImage
string
listStyleType
string
listStylePosition
string
listStyle
string
counterReset
string
counterIncrement
string
counterSet
string
blockSize
string
inlineSize
string
minBlockSize
string
minInlineSize
string
maxBlockSize
string
maxInlineSize
string
marginBlockStart
string
marginBlockEnd
string
marginInlineStart
string
marginInlineEnd
string
marginBlock
string
marginInline
string
paddingBlockStart
string
paddingBlockEnd
string
paddingInlineStart
string
paddingInlineEnd
string
paddingBlock
string
paddingInline
string
columnSpan
string
columnWidth
string
columnCount
string
columns
string
columnRuleColor
string
columnRuleStyle
string
columnRuleWidth
string
columnRule
string
columnFill
string
overflowClipMargin
string
textOverflow
string
overflowX
string
overflowY
string
overflow
string
scrollBehavior
string
scrollbarGutter
string
overscrollBehavior
string
overscrollBehaviorX
string
overscrollBehaviorY
string
overscrollBehaviorInline
string
overscrollBehaviorBlock
string
clear
string
page
string
insetBlockStart
string
insetInlineStart
string
insetBlockEnd
string
insetInlineEnd
string
insetBlock
string
insetInline
string
inset
string
rubyPosition
string
rubyAlign
string
overflowAnchor
string
scrollSnapType
string
scrollPadding
string
scrollMargin
string
scrollSnapAlign
string
scrollSnapStop
string
scrollPaddingTop
string
scrollPaddingRight
string
scrollPaddingBottom
string
scrollPaddingLeft
string
scrollPaddingInlineStart
string
scrollPaddingBlockStart
string
scrollPaddingInlineEnd
string
scrollPaddingBlockEnd
string
scrollPaddingBlock
string
scrollPaddingInline
string
scrollMarginTop
string
scrollMarginRight
string
scrollMarginBottom
string
scrollMarginLeft
string
scrollMarginBlockStart
string
scrollMarginInlineStart
string
scrollMarginBlockEnd
string
scrollMarginInlineEnd
string
scrollMarginBlock
string
scrollMarginInline
string
scrollbarColor
string
scrollbarWidth
string
shapeOutside
string
shapeImageThreshold
string
shapeMargin
string
aspectRatio
string
containIntrinsicWidth
string
containIntrinsicHeight
string
containIntrinsicBlockSize
string
containIntrinsicInlineSize
string
containIntrinsicSize
string
boxSizing
string
tableLayout
string
borderCollapse
string
borderSpacing
string
captionSide
string
emptyCells
string
whiteSpace
string
whiteSpaceCollapse
string
tabSize
string
textWrapMode
string
textWrapStyle
string
textWrap
string
wordBreak
string
lineBreak
string
hyphens
string
hyphenateCharacter
string
overflowWrap
string
textAlign
string
textAlignLast
string
wordSpacing
string
letterSpacing
string
textIndent
string
textDecorationLine
string
textDecorationStyle
string
textDecorationColor
string
textDecorationThickness
string
textDecoration
string
textUnderlinePosition
string
textUnderlineOffset
string
textDecorationSkipInk
string
textEmphasisStyle
string
textEmphasisColor
string
textEmphasis
string
textEmphasisPosition
string
textShadow
string
translate
string
rotate
string
scale
string
transformStyle
string
perspective
string
perspectiveOrigin
string
backfaceVisibility
string
transform
string
transformOrigin
string
transformBox
string
outline
string
outlineWidth
string
outlineStyle
string
outlineColor
string
outlineOffset
string
resize
string
cursor
string
caretColor
string
userSelect
string
accentColor
string
appearance
string
willChange
string
direction
string
unicodeBidi
string
writingMode
string
textOrientation
string
textCombineUpright
string
fillRule
string
fillOpacity
string
strokeWidth
string
strokeLinecap
string
strokeLinejoin
string
strokeMiterlimit
string
strokeDasharray
string
strokeDashoffset
string
strokeOpacity
string
backdropFilter
string
offsetPath
string
offsetDistance
string
offsetPosition
string
offsetAnchor
string
offsetRotate
string
offset
string
cssFloat
string

cssStyleSheet

A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. See CSSStyleSheet on MDN

type cssStyleSheet = {
type_: string,
href: Null.t<string>,
ownerNode: Null.t<unknown>,
parentStyleSheet: Null.t<cssStyleSheet>,
title: Null.t<string>,
media: mediaList,
mutable disabled: bool,
ownerRule: Null.t<cssRule>,
cssRules: cssRuleList,
}

Record fields

type_
string
href
Null.t< string >
ownerNode
Null.t< unknown >
parentStyleSheet
Null.t< cssStyleSheet >
title
Null.t< string >
disabled
bool
ownerRule
Null.t< cssRule >

cssStyleSheetInit

type cssStyleSheetInit = {
mutable baseURL?: string,
mutable media?: unknown,
mutable disabled?: bool,
}

Record fields

baseURL
option< string >
media
option< unknown >
disabled
option< bool >

cssStyleValue

type cssStyleValue = {}

customElementConstructor

type customElementConstructor = htmlElement

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

customElementRegistry

type customElementRegistry = {}

Module

There are methods and helpers defined in CustomElementRegistry .

customStateSet

type customStateSet = {}

document

Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. See Document on MDN

type document = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
implementation: domImplementation,
uRL: string,
documentURI: string,
compatMode: string,
characterSet: string,
contentType: string,
doctype: Null.t<documentType>,
documentElement: htmlElement,
scrollingElement: Null.t<element>,
fullscreenEnabled: bool,
mutable location: location,
referrer: string,
mutable cookie: string,
lastModified: string,
readyState: documentReadyState,
mutable title: string,
mutable dir: string,
mutable body: htmlElement,
head: htmlHeadElement,
images: htmlCollectionOf<htmlImageElement>,
embeds: htmlCollectionOf<htmlEmbedElement>,
plugins: htmlCollectionOf<htmlEmbedElement>,
links: htmlCollectionOf<WebAPI.Prelude.any>,
forms: htmlCollectionOf<htmlFormElement>,
scripts: htmlCollectionOf<htmlScriptElement>,
currentScript: Null.t<htmlElement>,
defaultView: Null.t<window>,
mutable designMode: string,
hidden: bool,
visibilityState: documentVisibilityState,
pictureInPictureEnabled: bool,
fragmentDirective: fragmentDirective,
timeline: documentTimeline,
fonts: WebAPI.CSSFontLoadingAPI.fontFaceSet,
styleSheets: styleSheetList,
mutable adoptedStyleSheets: array<cssStyleSheet>,
fullscreenElement: Null.t<element>,
activeElement: Null.t<element>,
pictureInPictureElement: Null.t<element>,
pointerLockElement: Null.t<element>,
children: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
implementation

Gets the implementation object of the current document. Read more on MDN

uRL
string

Sets or gets the URL for the current document. Read more on MDN

documentURI
string

Returns document's URL. Read more on MDN

compatMode
string

Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN

characterSet
string

Returns document's encoding. Read more on MDN

contentType
string

Returns document's content type. Read more on MDN

doctype
Null.t< documentType >

Gets an object representing the document type declaration associated with the current document. Read more on MDN

documentElement

Gets a reference to the root node of the document. Read more on MDN

scrollingElement
Null.t< element >
fullscreenEnabled
bool

Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN

location

Contains information about the current URL. Read more on MDN

referrer
string

Gets the URL of the location that referred the user to the current page. Read more on MDN

string

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
string

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

title
string

Contains the title of the document. Read more on MDN

dir
string

Sets or retrieves a value that indicates the reading order of the object. Read more on MDN

body

Specifies the beginning and end of the document body. Read more on MDN

head

Returns the head element. 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

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
Null.t< htmlElement >

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

defaultView
Null.t< window >

Returns the Window object of the active document. Read more on MDN

designMode
string

Sets or gets a value that indicates whether the document can be edited. Read more on MDN

hidden
bool
pictureInPictureEnabled
bool
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

adoptedStyleSheets
array< cssStyleSheet >
fullscreenElement
Null.t< element >

Returns document's fullscreen element. Read more on MDN

activeElement
Null.t< element >

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

pictureInPictureElement
Null.t< element >
pointerLockElement
Null.t< element >
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int

Module

There are methods and helpers defined in Document .

documentFragment

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

type documentFragment = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
children: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int

Module

There are methods and helpers defined in DocumentFragment .

documentReadyState

type documentReadyState =
| @as("complete") Complete
| @as("interactive") Interactive
| @as("loading") Loading

documentTimeline

type documentTimeline = {currentTime: Null.t<float>}

Record fields

currentTime
Null.t< float >

Module

There are methods and helpers defined in DocumentTimeline .

documentTimelineOptions

type documentTimelineOptions = {mutable originTime?: float}

Record fields

originTime
option< float >

documentType

A Node containing a doctype. See DocumentType on MDN

type documentType = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
name: string,
publicId: string,
systemId: string,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
name
string
publicId
string
systemId
string

documentVisibilityState

type documentVisibilityState =
| @as("hidden") Hidden
| @as("visible") Visible

domImplementation

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

type domImplementation = {}

domMatrix

type domMatrix = {
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

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

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
option< float >
b
option< float >
c
option< float >
d
option< float >
e
option< float >
f
option< float >
m11
option< float >
m12
option< float >
m21
option< float >
m22
option< float >
m41
option< float >
m42
option< float >

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
option< float >
b
option< float >
c
option< float >
d
option< float >
e
option< float >
f
option< float >
m11
option< float >
m12
option< float >
m21
option< float >
m22
option< float >
m41
option< float >
m42
option< float >
m13
option< float >
m14
option< float >
m23
option< float >
m24
option< float >
m31
option< float >
m32
option< float >
m33
option< float >
m34
option< float >
m43
option< float >
m44
option< float >
is2D
option< bool >

domMatrixReadOnly

type domMatrixReadOnly = {
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

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

domPoint

type domPoint = {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
option< float >
y
option< float >
z
option< float >
w
option< float >

domPointReadOnly

type domPointReadOnly = {
x: float,
y: float,
z: float,
w: float,
}

Record fields

domRect

type domRect = {
x: float,
y: float,
width: float,
height: float,
top: float,
right: float,
bottom: float,
left: float,
}

Record fields

width
float
height
float
top
float
right
float
bottom
float
left
float

domRectInit

type domRectInit = {
mutable x?: float,
mutable y?: float,
mutable width?: float,
mutable height?: float,
}

Record fields

x
option< float >
y
option< float >
width
option< float >
height
option< float >

domRectList

type domRectList = {}

domRectReadOnly

type domRectReadOnly = {
x: float,
y: float,
width: float,
height: float,
top: float,
right: float,
bottom: float,
left: float,
}

Record fields

width
float
height
float
top
float
right
float
bottom
float
left
float

domStringMap

Used by the dataset HTML attribute to represent data for custom attributes added to elements. See DOMStringMap on MDN

type domStringMap = {}

domTokenList

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

type domTokenList = {length: int, mutable value: string}

Record fields

length
int

Returns the number of tokens. Read more on MDN

value
string

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
option< fillMode >
iterationStart
option< float >
iterations
option< float >
direction
option< playbackDirection >
easing
option< string >
delay
option< float >
endDelay
option< float >
playbackRate
option< float >
duration
option< unknown >

element

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

type element = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
assignedSlot: Null.t<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>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >
ariaAtomic
Null.t< string >
ariaAutoComplete
Null.t< string >
ariaBrailleLabel
Null.t< string >
ariaBrailleRoleDescription
Null.t< string >
ariaBusy
Null.t< string >
ariaChecked
Null.t< string >
ariaColCount
Null.t< string >
ariaColIndex
Null.t< string >
ariaColIndexText
Null.t< string >
ariaColSpan
Null.t< string >
ariaCurrent
Null.t< string >
ariaDescription
Null.t< string >
ariaDisabled
Null.t< string >
ariaExpanded
Null.t< string >
ariaHasPopup
Null.t< string >
ariaHidden
Null.t< string >
ariaKeyShortcuts
Null.t< string >
ariaLabel
Null.t< string >
ariaLevel
Null.t< string >
ariaLive
Null.t< string >
ariaModal
Null.t< string >
ariaMultiLine
Null.t< string >
ariaMultiSelectable
Null.t< string >
ariaOrientation
Null.t< string >
ariaPlaceholder
Null.t< string >
ariaPosInSet
Null.t< string >
ariaPressed
Null.t< string >
ariaReadOnly
Null.t< string >
ariaRequired
Null.t< string >
ariaRoleDescription
Null.t< string >
ariaRowCount
Null.t< string >
ariaRowIndex
Null.t< string >
ariaRowIndexText
Null.t< string >
ariaRowSpan
Null.t< string >
ariaSelected
Null.t< string >
ariaSetSize
Null.t< string >
ariaSort
Null.t< string >
ariaValueMax
Null.t< string >
ariaValueMin
Null.t< string >
ariaValueNow
Null.t< string >
ariaValueText
Null.t< string >

Module

There are methods and helpers defined in Element .

elementCreationOptions

type elementCreationOptions = {mutable is?: string}

Record fields

is
option< string >

elementDefinitionOptions

type elementDefinitionOptions = {mutable extends?: string}

Record fields

extends
option< string >

elementInternals

type elementInternals = {
shadowRoot: Null.t<shadowRoot>,
form: Null.t<htmlFormElement>,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: nodeList,
states: customStateSet,
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>,
}

Record fields

shadowRoot
Null.t< 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
Null.t< htmlFormElement >

Returns the form owner of internals's target element. Read more on MDN

willValidate
bool

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
string

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

ariaAtomic
Null.t< string >
ariaAutoComplete
Null.t< string >
ariaBrailleLabel
Null.t< string >
ariaBrailleRoleDescription
Null.t< string >
ariaBusy
Null.t< string >
ariaChecked
Null.t< string >
ariaColCount
Null.t< string >
ariaColIndex
Null.t< string >
ariaColIndexText
Null.t< string >
ariaColSpan
Null.t< string >
ariaCurrent
Null.t< string >
ariaDescription
Null.t< string >
ariaDisabled
Null.t< string >
ariaExpanded
Null.t< string >
ariaHasPopup
Null.t< string >
ariaHidden
Null.t< string >
ariaKeyShortcuts
Null.t< string >
ariaLabel
Null.t< string >
ariaLevel
Null.t< string >
ariaLive
Null.t< string >
ariaModal
Null.t< string >
ariaMultiLine
Null.t< string >
ariaMultiSelectable
Null.t< string >
ariaOrientation
Null.t< string >
ariaPlaceholder
Null.t< string >
ariaPosInSet
Null.t< string >
ariaPressed
Null.t< string >
ariaReadOnly
Null.t< string >
ariaRequired
Null.t< string >
ariaRoleDescription
Null.t< string >
ariaRowCount
Null.t< string >
ariaRowIndex
Null.t< string >
ariaRowIndexText
Null.t< string >
ariaRowSpan
Null.t< string >
ariaSelected
Null.t< string >
ariaSetSize
Null.t< string >
ariaSort
Null.t< string >
ariaValueMax
Null.t< string >
ariaValueMin
Null.t< string >
ariaValueNow
Null.t< string >
ariaValueText
Null.t< string >

Module

There are methods and helpers defined in ElementInternals .

fileList

An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. See FileList on MDN

type fileList = {length: int}

Record fields

length
int

Module

There are methods and helpers defined in FileList .

fileSystemEntriesCallback

type fileSystemEntriesCallback = array<
WebAPI.FileAndDirectoryEntriesAPI.fileSystemEntry,
> => unit

fillMode

type fillMode =
| @as("auto") Auto
| @as("backwards") Backwards
| @as("both") Both
| @as("forwards") Forwards
| @as("none") None

fillStyle

type fillStyle

Module

There are methods and helpers defined in FillStyle .

focusOptions

type focusOptions = {mutable preventScroll?: bool}

Record fields

preventScroll
option< bool >

fragmentDirective

type fragmentDirective = {}

frameRequestCallback

type frameRequestCallback = float => unit

fullscreenNavigationUI

type fullscreenNavigationUI =
| @as("auto") Auto
| @as("hide") Hide
| @as("show") Show

fullscreenOptions

type fullscreenOptions = {
mutable navigationUI?: fullscreenNavigationUI,
}

Record fields

navigationUI

getAnimationsOptions

type getAnimationsOptions = {mutable subtree?: bool}

Record fields

subtree
option< bool >

getHTMLOptions

type getHTMLOptions = {
mutable serializableShadowRoots?: bool,
mutable shadowRoots?: array<shadowRoot>,
}

Record fields

serializableShadowRoots
option< bool >
shadowRoots
option< array< shadowRoot > >

getRootNodeOptions

type getRootNodeOptions = {mutable composed?: bool}

Record fields

composed
option< bool >

htmlAnchorElement

Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. See HTMLAnchorElement on MDN

type htmlAnchorElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable target: string,
mutable download: string,
mutable ping: string,
mutable rel: string,
relList: domTokenList,
mutable hreflang: string,
mutable type_: string,
mutable text: string,
mutable referrerPolicy: string,
mutable href: string,
origin: string,
mutable protocol: string,
mutable username: string,
mutable password: string,
mutable host: string,
mutable hostname: string,
mutable port: string,
mutable pathname: string,
mutable search: string,
mutable hash: string,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
target
string

Sets or retrieves the window or frame at which to target content. Read more on MDN

download
string
ping
string
rel
string

Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN

hreflang
string

Sets or retrieves the language code of the object. Read more on MDN

type_
string
text
string

Retrieves or sets the text of the object as a string. Read more on MDN

referrerPolicy
string
href
string

Returns the hyperlink's URL.

Can be set, to change the URL. Read more on MDN

origin
string

Returns the hyperlink's URL's origin. Read more on MDN

protocol
string

Returns the hyperlink's URL's scheme.

Can be set, to change the URL's scheme. Read more on MDN

username
string

Returns the hyperlink's URL's username.

Can be set, to change the URL's username. Read more on MDN

password
string

Returns the hyperlink's URL's password.

Can be set, to change the URL's password. Read more on MDN

host
string

Returns the hyperlink's URL's host and port (if different from the default port for the scheme).

Can be set, to change the URL's host and port. Read more on MDN

hostname
string

Returns the hyperlink's URL's host.

Can be set, to change the URL's host. Read more on MDN

port
string

Returns the hyperlink's URL's port.

Can be set, to change the URL's port. Read more on MDN

pathname
string

Returns the hyperlink's URL's path.

Can be set, to change the URL's path. Read more on MDN

string

Returns the hyperlink's URL's query (includes leading "?" if non-empty).

Can be set, to change the URL's query (ignores leading "?"). Read more on MDN

hash
string

Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).

Can be set, to change the URL's fragment (ignores leading "#"). Read more on MDN

htmlAreaElement

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 <area> elements. See HTMLAreaElement on MDN

type htmlAreaElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable target: string,
mutable ping: string,
mutable rel: string,
relList: domTokenList,
mutable referrerPolicy: string,
mutable href: string,
origin: string,
mutable protocol: string,
mutable username: string,
mutable password: string,
mutable host: string,
mutable hostname: string,
mutable port: string,
mutable pathname: string,
mutable search: string,
mutable hash: string,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
target
string

Sets or retrieves the window or frame at which to target content. Read more on MDN

ping
string
rel
string
referrerPolicy
string
href
string

Returns the hyperlink's URL.

Can be set, to change the URL. Read more on MDN

origin
string

Returns the hyperlink's URL's origin. Read more on MDN

protocol
string

Returns the hyperlink's URL's scheme.

Can be set, to change the URL's scheme. Read more on MDN

username
string

Returns the hyperlink's URL's username.

Can be set, to change the URL's username. Read more on MDN

password
string

Returns the hyperlink's URL's password.

Can be set, to change the URL's password. Read more on MDN

host
string

Returns the hyperlink's URL's host and port (if different from the default port for the scheme).

Can be set, to change the URL's host and port. Read more on MDN

hostname
string

Returns the hyperlink's URL's host.

Can be set, to change the URL's host. Read more on MDN

port
string

Returns the hyperlink's URL's port.

Can be set, to change the URL's port. Read more on MDN

pathname
string

Returns the hyperlink's URL's path.

Can be set, to change the URL's path. Read more on MDN

string

Returns the hyperlink's URL's query (includes leading "?" if non-empty).

Can be set, to change the URL's query (ignores leading "?"). Read more on MDN

hash
string

Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).

Can be set, to change the URL'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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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,
mediaKeys: Null.t<
WebAPI.EncryptedMediaExtensionsAPI.mediaKeys,
>,
remote: WebAPI.RemotePlaybackAPI.remotePlayback,
mutable disableRemotePlayback: bool,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
error
Null.t< mediaError >

Returns an object representing the current error state of the audio or video element. Read more on MDN

src
string

The address or URL of the a media resource that is to be considered. Read more on MDN

srcObject
Null.t< mediaProvider >
currentSrc
string

Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN

crossOrigin
Null.t< string >
networkState
int

Gets the current network activity for the element. Read more on MDN

preload
string

Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN

buffered

Gets a collection of buffered time ranges. Read more on MDN

readyState
int
currentTime
float

Gets or sets the current playback position, in seconds. Read more on MDN

duration
float

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

paused
bool

Gets a flag that specifies whether playback is paused. Read more on MDN

defaultPlaybackRate
float

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
float

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

preservesPitch
bool
seekable

Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN

ended
bool

Gets information about whether the playback has ended or not. Read more on MDN

autoplay
bool

Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN

loop
bool

Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN

controls
bool

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
float

Gets or sets the volume level for audio portions of the media element. Read more on MDN

muted
bool

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

defaultMuted
bool
sinkId
string
disableRemotePlayback
bool

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

type htmlBaseElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable href: string,
mutable target: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
href
string

Gets or sets the baseline URL on which relative links are based. Read more on MDN

target
string

Sets or retrieves the window or frame at which to target content. 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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlbrElement

A HTML line break element (<br>). It inherits from HTMLElement. See HTMLBRElement on MDN

type htmlbrElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlButtonElement

Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. See HTMLButtonElement on MDN

type htmlButtonElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable formAction: string,
mutable formEnctype: string,
mutable formMethod: string,
mutable name: string,
mutable type_: string,
mutable value: string,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: nodeListOf<htmlLabelElement>,
mutable popoverTargetElement: Null.t<element>,
mutable popoverTargetAction: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

formAction
string

Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN

formEnctype
string

Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN

formMethod
string

Overrides the submit method attribute previously specified on a form element. Read more on MDN

name
string

Sets or retrieves the name of the object. Read more on MDN

type_
string

Gets the classification and default behavior of the button. Read more on MDN

value
string

Sets or retrieves the default or selected value of the control. Read more on MDN

willValidate
bool

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
string

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

popoverTargetElement
Null.t< element >
popoverTargetAction
string

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

type htmlCanvasElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable width: int,
mutable height: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
width
int

Gets or sets the width of a canvas element on a document. Read more on MDN

height
int

Gets or sets the height of a canvas element on a document. Read more on MDN

htmlCollection

A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. See HTMLCollection on MDN

type htmlCollection = {length: int}

Record fields

length
int

Sets or retrieves the number of objects in a collection. Read more on MDN

htmlCollectionOf

type htmlCollectionOf<'t> = {length: int}

Record fields

length
int

Sets or retrieves the number of objects in a collection. Read more on MDN

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

type htmlDataElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable value: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
value
string

htmlDataListElement

Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. See HTMLDataListElement on MDN

type htmlDataListElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
options: htmlCollectionOf<htmlOptionElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
options

Returns an HTMLCollection of the option elements of the datalist element. Read more on MDN

htmlDialogElement

type htmlDialogElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable open_: bool,
mutable returnValue: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
open_
bool
returnValue
string

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlElement

Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. See HTMLElement on MDN

type htmlElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlEmbedElement

Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. See HTMLEmbedElement on MDN

type htmlEmbedElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable src: string,
mutable width: string,
mutable height: string,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
src
string

Sets or retrieves a URL to be loaded by the object. Read more on MDN

width
string

Sets or retrieves the width of the object. Read more on MDN

height
string

Sets or retrieves the height of the object. 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

type htmlFieldSetElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable name: string,
type_: string,
elements: htmlCollection,
willValidate: bool,
validity: validityState,
validationMessage: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

name
string
type_
string

Returns the string "fieldset". Read more on MDN

elements

Returns an HTMLCollection of the form controls in the element. Read more on MDN

willValidate
bool

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
string

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

A collection of HTML form control elements. See HTMLFormControlsCollection on MDN

type htmlFormControlsCollection = {length: int}

Record fields

length
int

Sets or retrieves the number of objects in a collection. Read more on MDN

htmlFormElement

A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. See HTMLFormElement on MDN

type htmlFormElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable acceptCharset: string,
mutable action: string,
mutable autocomplete: autoFillBase,
mutable enctype: string,
mutable encoding: string,
mutable method: string,
mutable name: string,
mutable target: string,
elements: htmlFormControlsCollection,
length: int,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
acceptCharset
string

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
string

Sets or retrieves the URL 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

enctype
string

Sets or retrieves the encoding type for the form. Read more on MDN

encoding
string

Sets or retrieves the MIME encoding for the form. Read more on MDN

method
string

Sets or retrieves how to send the form data to the server. Read more on MDN

name
string

Sets or retrieves the name of the object. Read more on MDN

target
string

Sets or retrieves the window or frame at which to target content. Read more on MDN

elements

Retrieves a collection, in source order, of all controls in a given form. Read more on MDN

length
int

Sets or retrieves the number of objects in a collection. 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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlHeadElement

Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. See HTMLHeadElement on MDN

type htmlHeadElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >

htmlHeadingElement

The different heading elements. It inherits methods and properties from the HTMLElement interface. See HTMLHeadingElement on MDN

type htmlHeadingElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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

type htmliFrameElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
src
string

Sets or retrieves a URL to be loaded by the object. Read more on MDN

srcdoc
string

Sets or retrives the content of the page that is to contain. Read more on MDN

name
string

Sets or retrieves the frame name. Read more on MDN

allow
string
allowFullscreen
bool
width
string

Sets or retrieves the width of the object. Read more on MDN

height
string

Sets or retrieves the height of the object. Read more on MDN

loading
string
contentDocument
Null.t< document >

Retrieves the document object of the page or frame. Read more on MDN

contentWindow
Null.t< window >

Retrieves the object of the specified. Read more on MDN

htmlImageElement

Provides special properties and methods for manipulating <img> elements. See HTMLImageElement on MDN

type htmlImageElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable alt: string,
mutable src: string,
mutable srcset: string,
mutable sizes: string,
mutable crossOrigin: Null.t<string>,
mutable useMap: string,
mutable isMap: bool,
mutable width: int,
mutable height: int,
naturalWidth: int,
naturalHeight: int,
complete: bool,
currentSrc: string,
mutable referrerPolicy: string,
mutable decoding: string,
mutable loading: string,
mutable fetchPriority: string,
x: int,
y: int,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
alt
string

Sets or retrieves a text alternative to the graphic. Read more on MDN

src
string

The address or URL of the a media resource that is to be considered. Read more on MDN

srcset
string
sizes
string
crossOrigin
Null.t< string >
useMap
string

Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. Read more on MDN

isMap
bool

Sets or retrieves whether the image is a server-side image map. Read more on MDN

width
int

Sets or retrieves the width of the object. Read more on MDN

height
int

Sets or retrieves the height of the object. Read more on MDN

naturalWidth
int

The original width of the image resource before sizing. Read more on MDN

naturalHeight
int

The original height of the image resource before sizing. Read more on MDN

complete
bool

Retrieves whether the object is fully loaded. Read more on MDN

currentSrc
string
referrerPolicy
string
decoding
string
loading
string

Sets or retrieves the policy for loading image elements that are outside the viewport. Read more on MDN

fetchPriority
string

htmlInputElement

Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. See HTMLInputElement on MDN

type htmlInputElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable accept: string,
mutable alt: string,
mutable autocomplete: string,
mutable defaultChecked: bool,
mutable checked: bool,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable files: Null.t<fileList>,
mutable formAction: string,
mutable formEnctype: string,
mutable formMethod: string,
mutable height: int,
mutable indeterminate: bool,
list: Null.t<htmlDataListElement>,
mutable max: string,
mutable maxLength: int,
mutable min: string,
mutable minLength: int,
mutable multiple: bool,
mutable name: string,
mutable pattern: string,
mutable placeholder: string,
mutable readOnly: bool,
mutable required: bool,
mutable size: int,
mutable src: string,
mutable step: string,
mutable type_: string,
mutable defaultValue: string,
mutable value: string,
mutable valueAsDate: Null.t<Date.t>,
mutable valueAsNumber: float,
mutable width: int,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: Null.t<nodeListOf<htmlLabelElement>>,
mutable selectionStart: Null.t<int>,
mutable selectionEnd: Null.t<int>,
mutable selectionDirection: Null.t<string>,
mutable webkitdirectory: bool,
webkitEntries: array<
WebAPI.FileAndDirectoryEntriesAPI.fileSystemEntry,
>,
mutable capture: string,
mutable popoverTargetElement: Null.t<element>,
mutable popoverTargetAction: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
accept
string

Sets or retrieves a comma-separated list of content types. Read more on MDN

alt
string

Sets or retrieves a text alternative to the graphic. Read more on MDN

autocomplete
string

Specifies whether autocomplete is applied to an editable text field. Read more on MDN

defaultChecked
bool

Sets or retrieves the state of the check box or radio button. Read more on MDN

checked
bool

Sets or retrieves the state of the check box or radio button. Read more on MDN

disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

files
Null.t< fileList >

Returns a FileList object on a file type input object. Read more on MDN

formAction
string

Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN

formEnctype
string

Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN

formMethod
string

Overrides the submit method attribute previously specified on a form element. Read more on MDN

height
int

Sets or retrieves the height of the object. Read more on MDN

indeterminate
bool

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
string

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
int

Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN

min
string

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

minLength
int
multiple
bool

Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN

name
string

Sets or retrieves the name of the object. Read more on MDN

pattern
string

Gets or sets a string containing a regular expression that the user's input must match. Read more on MDN

placeholder
string

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
bool
required
bool

When present, marks an element that can't be submitted without a value. Read more on MDN

size
int
src
string

The address or URL of the a media resource that is to be considered. Read more on MDN

step
string

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

type_
string

Returns the content type of the object. Read more on MDN

defaultValue
string

Sets or retrieves the initial contents of the object. Read more on MDN

value
string

Returns the value of the data at the cursor's current position. Read more on MDN

valueAsDate
Null.t< Date.t >

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

valueAsNumber
float

Returns the input field value as a number. Read more on MDN

width
int

Sets or retrieves the width of the object. Read more on MDN

willValidate
bool

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
string

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
Null.t< int >

Gets or sets the starting position or offset of a text selection. Read more on MDN

selectionEnd
Null.t< int >

Gets or sets the end position or offset of a text selection. Read more on MDN

selectionDirection
Null.t< string >
webkitdirectory
bool
capture
string
popoverTargetElement
Null.t< element >
popoverTargetAction
string

htmlLabelElement

Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. See HTMLLabelElement on MDN

type htmlLabelElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
form: Null.t<htmlFormElement>,
mutable htmlFor: string,
control: Null.t<htmlElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

htmlFor
string

Sets or retrieves the object to which the given label object is assigned. Read more on MDN

control
Null.t< htmlElement >

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
form: Null.t<htmlFormElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
form
Null.t< htmlFormElement >

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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

type htmlLinkElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
href
string

Sets or retrieves a destination URL or an anchor point. Read more on MDN

crossOrigin
Null.t< string >
rel
string

Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN

as_
string
media
string

Sets or retrieves the media type. Read more on MDN

integrity
string
hreflang
string

Sets or retrieves the language code of the object. Read more on MDN

type_
string

Sets or retrieves the MIME type of the object. Read more on MDN

referrerPolicy
string
disabled
bool
fetchPriority
string

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

type htmlMapElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable name: string,
areas: htmlCollection,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
name
string

Sets or retrieves the name of the object. 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

type htmlMediaElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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,
mediaKeys: Null.t<
WebAPI.EncryptedMediaExtensionsAPI.mediaKeys,
>,
remote: WebAPI.RemotePlaybackAPI.remotePlayback,
mutable disableRemotePlayback: bool,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
error
Null.t< mediaError >

Returns an object representing the current error state of the audio or video element. Read more on MDN

src
string

The address or URL of the a media resource that is to be considered. Read more on MDN

srcObject
Null.t< mediaProvider >
currentSrc
string

Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN

crossOrigin
Null.t< string >
networkState
int

Gets the current network activity for the element. Read more on MDN

preload
string

Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN

buffered

Gets a collection of buffered time ranges. Read more on MDN

readyState
int
currentTime
float

Gets or sets the current playback position, in seconds. Read more on MDN

duration
float

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

paused
bool

Gets a flag that specifies whether playback is paused. Read more on MDN

defaultPlaybackRate
float

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
float

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

preservesPitch
bool
seekable

Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN

ended
bool

Gets information about whether the playback has ended or not. Read more on MDN

autoplay
bool

Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN

loop
bool

Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN

controls
bool

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
float

Gets or sets the volume level for audio portions of the media element. Read more on MDN

muted
bool

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

defaultMuted
bool
sinkId
string
disableRemotePlayback
bool

htmlMenuElement

type htmlMenuElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlMetaElement

Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. See HTMLMetaElement on MDN

type htmlMetaElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable name: string,
mutable httpEquiv: string,
mutable content: string,
mutable media: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
name
string

Sets or retrieves the value specified in the content attribute of the meta object. Read more on MDN

httpEquiv
string

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

content
string

Gets or sets meta-information to associate with httpEquiv or name. Read more on MDN

media
string

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

type htmlMeterElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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: nodeListOf<htmlLabelElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
value
float
min
float
max
float
low
float
high
float
optimum
float

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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

type htmlObjectElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
data
string

Sets or retrieves the URL that references the data of the object. Read more on MDN

type_
string

Sets or retrieves the MIME type of the object. Read more on MDN

name
string

Sets or retrieves the name of the object. Read more on MDN

form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

width
string

Sets or retrieves the width of the object. Read more on MDN

height
string

Sets or retrieves the height of the object. Read more on MDN

contentDocument
Null.t< document >

Retrieves the document object of the page or frame. Read more on MDN

contentWindow
Null.t< window >
willValidate
bool

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
string

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

type htmloListElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable reversed: bool,
mutable start: int,
mutable type_: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
reversed
bool
start
int

The starting number. Read more on MDN

type_
string

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

type htmlOptGroupElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
mutable label: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool
label
string

Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN

htmlOptionElement

<option> elements and inherits all classes and methods of the HTMLElement interface. [See HTMLOptionElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
type htmlOptionElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable label: string,
mutable defaultSelected: bool,
mutable selected: bool,
mutable value: string,
mutable text: string,
index: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

label
string

Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN

defaultSelected
bool

Sets or retrieves the status of an option. Read more on MDN

selected
bool

Sets or retrieves whether the option in the list box is the default item. Read more on MDN

value
string

Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN

text
string

Sets or retrieves the text string specified by the option tag. Read more on MDN

index
int

Sets or retrieves the ordinal position of an option in a list box. Read more on MDN

htmlOptionsCollection

HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. See HTMLOptionsCollection on MDN

type htmlOptionsCollection = {
length: int,
mutable selectedIndex: int,
}

Record fields

length
int

Sets or retrieves the number of objects in a collection. Read more on MDN

selectedIndex
int

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

Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. See HTMLOutputElement on MDN

type htmlOutputElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
htmlFor: domTokenList,
form: Null.t<htmlFormElement>,
mutable name: string,
type_: string,
mutable defaultValue: string,
mutable value: string,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: nodeListOf<htmlLabelElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
name
string
type_
string

Returns the string "output". Read more on MDN

defaultValue
string
value
string

Returns the element's current value.

Can be set, to change the value. Read more on MDN

willValidate
bool
validationMessage
string

htmlParagraphElement

Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. See HTMLParagraphElement on MDN

type htmlParagraphElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlPictureElement

A <picture> HTML element. It doesn't implement specific properties or methods. See HTMLPictureElement on MDN

type htmlPictureElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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

type htmlProgressElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable value: float,
mutable max: float,
position: float,
labels: nodeListOf<htmlLabelElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
value
float

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

max
float

Defines the maximum, or "done" value for a progress element. Read more on MDN

position
float

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlScriptElement

HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). See HTMLScriptElement on MDN

type htmlScriptElement = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable src: string,
mutable type_: string,
mutable noModule: bool,
mutable async: bool,
mutable defer: bool,
mutable crossOrigin: Null.t<string>,
mutable text: string,
mutable integrity: string,
mutable referrerPolicy: string,
mutable fetchPriority: string,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
src
string

Retrieves the URL to an external file that contains the source code or data. Read more on MDN

type_
string

Sets or retrieves the MIME type for the associated scripting engine. Read more on MDN

noModule
bool
async
bool
defer
bool

Sets or retrieves the status of the script. Read more on MDN

crossOrigin
Null.t< string >
text
string

Retrieves or sets the text of the object as a string. Read more on MDN

integrity
string
referrerPolicy
string
fetchPriority
string

htmlSelectElement

A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. See HTMLSelectElement on MDN

type htmlSelectElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable multiple: bool,
mutable name: string,
mutable required: bool,
mutable size: int,
type_: string,
options: htmlOptionsCollection,
mutable length: int,
selectedOptions: htmlCollectionOf<htmlOptionElement>,
mutable selectedIndex: int,
mutable value: string,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: nodeListOf<htmlLabelElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

multiple
bool

Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN

name
string

Sets or retrieves the name of the object. Read more on MDN

required
bool

When present, marks an element that can't be submitted without a value. Read more on MDN

size
int

Sets or retrieves the number of rows in the list box. Read more on MDN

type_
string

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

length
int

Sets or retrieves the number of objects in a collection. Read more on MDN

selectedIndex
int

Sets or retrieves the index of the selected option in a select object. Read more on MDN

value
string

Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN

willValidate
bool

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
string

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 = {
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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable name: string,
}

Record fields

title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
name
string

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

type htmlSourceElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable width: int,
mutable height: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
width
int
height
int

htmlSpanElement

A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLSpanElement on MDN

type htmlSpanElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlStyleElement

A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. See HTMLStyleElement on MDN

type htmlStyleElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable disabled: bool,
mutable media: string,
sheet: Null.t<cssStyleSheet>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
disabled
bool

Enables or disables the style sheet. Read more on MDN

media
string

Sets or retrieves the media type. Read more on MDN

htmlTableCaptionElement

Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. See HTMLTableCaptionElement on MDN

type htmlTableCaptionElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlTableCellElement

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 table cells, either header or data cells, in an HTML document. See HTMLTableCellElement on MDN

type htmlTableCellElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable colSpan: int,
mutable rowSpan: int,
mutable headers: string,
cellIndex: int,
mutable scope: string,
mutable abbr: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
colSpan
int

Sets or retrieves the number columns in the table that the object should span. Read more on MDN

rowSpan
int

Sets or retrieves how many rows in a table the cell should span. Read more on MDN

headers
string

Sets or retrieves a list of header cells that provide information for the object. Read more on MDN

cellIndex
int

Retrieves the position of the object in the cells collection of a row. Read more on MDN

scope
string

Sets or retrieves the group of cells in a table to which the object's information applies. Read more on MDN

abbr
string

Sets or retrieves abbreviated text for the object. Read more on MDN

htmlTableElement

Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. See HTMLTableElement on MDN

type htmlTableElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable caption: Null.t<htmlTableCaptionElement>,
mutable tHead: Null.t<htmlTableSectionElement>,
mutable tFoot: Null.t<htmlTableSectionElement>,
tBodies: htmlCollectionOf<htmlTableSectionElement>,
rows: htmlCollectionOf<htmlTableRowElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
caption

Retrieves the caption object of a table. Read more on MDN

tHead

Retrieves the tHead object of the table. Read more on MDN

tFoot

Retrieves the tFoot object of the table. 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

Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. See HTMLTableRowElement on MDN

type htmlTableRowElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
rowIndex: int,
sectionRowIndex: int,
cells: htmlCollectionOf<htmlTableCellElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
rowIndex
int

Retrieves the position of the object in the rows collection for the table. Read more on MDN

sectionRowIndex
int

Retrieves the position of the object in the collection. Read more on MDN

cells

Retrieves a collection of all cells in the table row. Read more on MDN

htmlTableSectionElement

Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. See HTMLTableSectionElement on MDN

type htmlTableSectionElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
rows: htmlCollectionOf<htmlTableRowElement>,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
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

type htmlTemplateElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
content

Returns the template contents (a DocumentFragment). Read more on MDN

shadowRootMode
string
shadowRootDelegatesFocus
bool
shadowRootClonable
bool
shadowRootSerializable
bool

htmlTextAreaElement

Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. See HTMLTextAreaElement on MDN

type htmlTextAreaElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable autocomplete: string,
mutable cols: int,
mutable disabled: bool,
form: Null.t<htmlFormElement>,
mutable maxLength: int,
mutable minLength: int,
mutable name: string,
mutable placeholder: string,
mutable readOnly: bool,
mutable required: bool,
mutable rows: int,
mutable wrap: string,
type_: string,
mutable defaultValue: string,
mutable value: string,
textLength: int,
willValidate: bool,
validity: validityState,
validationMessage: string,
labels: nodeListOf<htmlLabelElement>,
mutable selectionStart: int,
mutable selectionEnd: int,
mutable selectionDirection: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
autocomplete
string
cols
int

Sets or retrieves the width of the object. Read more on MDN

disabled
bool
form
Null.t< htmlFormElement >

Retrieves a reference to the form that the object is embedded in. Read more on MDN

maxLength
int

Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN

minLength
int
name
string

Sets or retrieves the name of the object. Read more on MDN

placeholder
string

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
bool

Sets or retrieves the value indicated whether the content of the object is read-only. Read more on MDN

required
bool

When present, marks an element that can't be submitted without a value. Read more on MDN

rows
int

Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN

wrap
string

Sets or retrieves how to handle wordwrapping in the object. Read more on MDN

type_
string

Retrieves the type of control. Read more on MDN

defaultValue
string

Sets or retrieves the initial contents of the object. Read more on MDN

value
string

Retrieves or sets the text in the entry field of the textArea element. Read more on MDN

textLength
int
willValidate
bool

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
string

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
int

Gets or sets the starting position or offset of a text selection. Read more on MDN

selectionEnd
int

Gets or sets the end position or offset of a text selection. Read more on MDN

selectionDirection
string

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

type htmlTimeElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable dateTime: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
dateTime
string

htmlTitleElement

Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. See HTMLTitleElement on MDN

type htmlTitleElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable text: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
text
string

Retrieves or sets the text of the object as a string. Read more on MDN

htmlTrackElement

The HTMLTrackElement See HTMLTrackElement on MDN

type htmlTrackElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
mutable src: string,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
src
string

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 = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

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: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: domStringMap,
mutable nonce?: string,
mutable autofocus: bool,
mutable tabIndex: int,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int

htmlVideoElement

Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. See HTMLVideoElement on MDN

type htmlVideoElement = {
namespaceURI: Null.t<string>,
prefix: Null.t<string>,
localName: string,
tagName: string,
mutable id: string,
mutable className: string,
classList: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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<element>,
offsetTop: int,
offsetLeft: int,
offsetWidth: int,
offsetHeight: int,
style: cssStyleDeclaration,
attributeStyleMap: stylePropertyMap,
mutable contentEditable: string,
mutable enterKeyHint: string,
isContentEditable: bool,
mutable inputMode: string,
dataset: 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,
mediaKeys: Null.t<
WebAPI.EncryptedMediaExtensionsAPI.mediaKeys,
>,
remote: WebAPI.RemotePlaybackAPI.remotePlayback,
mutable disableRemotePlayback: bool,
mutable width: int,
mutable height: int,
videoWidth: int,
videoHeight: int,
mutable poster: string,
mutable disablePictureInPicture: bool,
}

Record fields

namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
title
string
lang
string
translate
bool
dir
string
hidden
unknown
inert
bool
accessKey
string
accessKeyLabel
string
draggable
bool
spellcheck
bool
autocapitalize
string
innerText
string
outerText
string
popover
Null.t< string >
offsetParent
Null.t< element >
offsetTop
int
offsetLeft
int
offsetWidth
int
offsetHeight
int
contentEditable
string
enterKeyHint
string
isContentEditable
bool
inputMode
string
nonce
option< string >
autofocus
bool
tabIndex
int
error
Null.t< mediaError >

Returns an object representing the current error state of the audio or video element. Read more on MDN

src
string

The address or URL of the a media resource that is to be considered. Read more on MDN

srcObject
Null.t< mediaProvider >
currentSrc
string

Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN

crossOrigin
Null.t< string >
networkState
int

Gets the current network activity for the element. Read more on MDN

preload
string

Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN

buffered

Gets a collection of buffered time ranges. Read more on MDN

readyState
int
currentTime
float

Gets or sets the current playback position, in seconds. Read more on MDN

duration
float

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

paused
bool

Gets a flag that specifies whether playback is paused. Read more on MDN

defaultPlaybackRate
float

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
float

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

preservesPitch
bool
seekable

Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN

ended
bool

Gets information about whether the playback has ended or not. Read more on MDN

autoplay
bool

Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN

loop
bool

Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN

controls
bool

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
float

Gets or sets the volume level for audio portions of the media element. Read more on MDN

muted
bool

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

defaultMuted
bool
sinkId
string
disableRemotePlayback
bool
width
int

Gets or sets the width of the video element. Read more on MDN

height
int

Gets or sets the height of the video element. Read more on MDN

videoWidth
int

Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN

videoHeight
int

Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN

poster
string

Gets or sets a URL 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

disablePictureInPicture
bool

idleDeadline

type idleDeadline = {didTimeout: bool}

Record fields

didTimeout
bool

Module

There are methods and helpers defined in IdleDeadline .

idleRequestCallback

type idleRequestCallback = idleDeadline => unit

idleRequestOptions

type idleRequestOptions = {mutable timeout?: int}

Record fields

timeout
option< int >

imageBitmapOptions

type imageBitmapOptions = {
mutable imageOrientation?: imageOrientation,
mutable premultiplyAlpha?: premultiplyAlpha,
mutable colorSpaceConversion?: colorSpaceConversion,
mutable resizeWidth?: int,
mutable resizeHeight?: int,
mutable resizeQuality?: resizeQuality,
}

Record fields

imageOrientation
option< imageOrientation >
premultiplyAlpha
option< premultiplyAlpha >
colorSpaceConversion
resizeWidth
option< int >
resizeHeight
option< int >
resizeQuality
option< resizeQuality >

imageBitmapSource

type imageBitmapSource = WebAPI.Prelude.any

imageData

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 = {
width: int,
height: int,
data: array<int>,
colorSpace: predefinedColorSpace,
}

Record fields

width
int

Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN

height
int

Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN

data
array< int >

Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. Read more on MDN

Module

There are methods and helpers defined in ImageData .

imageDataSettings

type imageDataSettings = {
mutable colorSpace?: predefinedColorSpace,
}

Record fields

colorSpace

imageOrientation

type imageOrientation =
| @as("flipY") FlipY
| @as("from-image") FromImage
| @as("none") None

insertPosition

type insertPosition =
| @as("afterbegin") Afterbegin
| @as("afterend") Afterend
| @as("beforebegin") Beforebegin
| @as("beforeend") Beforeend

iterationCompositeOperation

type iterationCompositeOperation =
| @as("accumulate") Accumulate
| @as("replace") Replace

keyframeAnimationOptions

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
option< fillMode >
iterationStart
option< float >
iterations
option< float >
direction
option< playbackDirection >
easing
option< string >
delay
option< float >
endDelay
option< float >
playbackRate
option< float >
duration
option< unknown >
composite
option< compositeOperation >
pseudoElement
option< Null.t< string > >
iterationComposite
id
option< string >
timeline
option< Null.t< animationTimeline > >

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
option< fillMode >
iterationStart
option< float >
iterations
option< float >
direction
option< playbackDirection >
easing
option< string >
delay
option< float >
endDelay
option< float >
playbackRate
option< float >
duration
option< unknown >
composite
option< compositeOperation >
pseudoElement
option< Null.t< string > >
iterationComposite

location

The location (URL) 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 = {
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: WebAPI.Prelude.domStringList,
}

Record fields

href
string

Returns the Location object's URL.

Can be set, to navigate to the given URL. Read more on MDN

origin
string

Returns the Location object's URL's origin. Read more on MDN

protocol
string

Returns the Location object's URL's scheme.

Can be set, to navigate to the same URL with a changed scheme. Read more on MDN

host
string

Returns the Location object's URL's host and port (if different from the default port for the scheme).

Can be set, to navigate to the same URL with a changed host and port. Read more on MDN

hostname
string

Returns the Location object's URL's host.

Can be set, to navigate to the same URL with a changed host. Read more on MDN

port
string

Returns the Location object's URL's port.

Can be set, to navigate to the same URL with a changed port. Read more on MDN

pathname
string

Returns the Location object's URL's path.

Can be set, to navigate to the same URL with a changed path. Read more on MDN

string

Returns the Location object's URL's query (includes leading "?" if non-empty).

Can be set, to navigate to the same URL with a changed query (ignores leading "?"). Read more on MDN

hash
string

Returns the Location object's URL's fragment (includes leading "#" if non-empty).

Can be set, to navigate to the same URL 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

Module

There are methods and helpers defined in Location .

mediaError

An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. See MediaError on MDN

type mediaError = {code: int, message: string}

Record fields

code
int
message
string

mediaList

type mediaList = {mutable mediaText: string, length: int}

Record fields

mediaText
string
length
int

Module

There are methods and helpers defined in MediaList .

mediaProvider

type mediaProvider = WebAPI.Prelude.any

mediaQueryList

Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). See MediaQueryList on MDN

type mediaQueryList = {media: string, matches: bool}

Record fields

media
string
matches
bool

Module

There are methods and helpers defined in MediaQueryList .

mutationRecord

A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. See MutationRecord on MDN

type mutationRecord = {
type_: string,
target: node,
addedNodes: nodeList,
removedNodes: nodeList,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
attributeName: Null.t<string>,
attributeNamespace: Null.t<string>,
oldValue: Null.t<string>,
}

Record fields

type_
string

Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. Read more on MDN

target

Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. Read more on MDN

addedNodes

Return the nodes added and removed respectively. Read more on MDN

removedNodes

Return the nodes added and removed respectively. Read more on MDN

previousSibling
Null.t< node >

Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN

nextSibling
Null.t< node >

Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN

attributeName
Null.t< string >

Returns the local name of the changed attribute, and null otherwise. Read more on MDN

attributeNamespace
Null.t< string >

Returns the namespace of the changed attribute, and null otherwise. Read more on MDN

oldValue
Null.t< string >

The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. Read more on MDN

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 = {length: int}

Record fields

length
int

Module

There are methods and helpers defined in NamedNodeMap .

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 = {
clipboard: WebAPI.ClipboardAPI.clipboard,
credentials: WebAPI.CredentialManagementAPI.credentialsContainer,
geolocation: WebAPI.GeolocationAPI.geolocation,
userActivation: userActivation,
mediaCapabilities: WebAPI.MediaCapabilitiesAPI.mediaCapabilities,
mediaDevices: WebAPI.MediaCaptureAndStreamsAPI.mediaDevices,
mediaSession: WebAPI.MediaSessionAPI.mediaSession,
permissions: WebAPI.PermissionsAPI.permissions,
maxTouchPoints: int,
wakeLock: WebAPI.ScreenWakeLockAPI.wakeLock,
serviceWorker: WebAPI.ServiceWorkerAPI.serviceWorkerContainer,
userAgent: string,
language: string,
languages: array<string>,
onLine: bool,
cookieEnabled: bool,
pdfViewerEnabled: bool,
hardwareConcurrency: int,
storage: WebAPI.StorageAPI.storageManager,
locks: WebAPI.WebLocksAPI.lockManager,
webdriver: bool,
}

Record fields

int
string
string
array< string >
bool
bool
bool
int
bool

Module

There are methods and helpers defined in Navigator .

node

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

type node = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >

Module

There are methods and helpers defined in Node .

nodeFilter

type nodeFilter = {}

Module

There are methods and helpers defined in NodeFilter .

nodeIterator

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

type nodeIterator = {
root: node,
referenceNode: node,
pointerBeforeReferenceNode: bool,
whatToShow: int,
filter: Null.t<nodeFilter>,
}

Record fields

referenceNode
pointerBeforeReferenceNode
bool
whatToShow
int
filter
Null.t< nodeFilter >

Module

There are methods and helpers defined in NodeIterator .

nodeList

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

type nodeList = {length: int}

Record fields

length
int

Returns the number of nodes in the collection. Read more on MDN

Module

There are methods and helpers defined in NodeList .

nodeListOf

type nodeListOf<'tNode> = {length: int}

Record fields

length
int

Returns the number of nodes in the collection. Read more on MDN

Module

There are methods and helpers defined in NodeListOf .

offscreenRenderingContext

type offscreenRenderingContext = WebAPI.Prelude.any

optionalEffectTiming

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
option< float >
endDelay
option< float >
fill
option< fillMode >
iterationStart
option< float >
iterations
option< float >
duration
option< unknown >
direction
option< playbackDirection >
easing
option< string >
playbackRate
option< float >

orientationType

type orientationType =
| @as("landscape-primary") LandscapePrimary
| @as("landscape-secondary") LandscapeSecondary
| @as("portrait-primary") PortraitPrimary
| @as("portrait-secondary") PortraitSecondary

planeLayout

type planeLayout = {
mutable offset: int,
mutable stride: int,
}

Record fields

offset
int
stride
int

playbackDirection

type playbackDirection =
| @as("alternate") Alternate
| @as("alternate-reverse") AlternateReverse
| @as("normal") Normal
| @as("reverse") Reverse

pointerLockOptions

type pointerLockOptions = {
mutable unadjustedMovement?: bool,
}

Record fields

unadjustedMovement
option< bool >

predefinedColorSpace

type predefinedColorSpace =
| @as("display-p3") DisplayP3
| @as("srgb") Srgb

premultiplyAlpha

type premultiplyAlpha =
| @as("default") Default
| @as("none") None
| @as("premultiply") Premultiply

processingInstruction

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

type processingInstruction = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable data: string,
length: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
target: string,
sheet: Null.t<cssStyleSheet>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
data
string
length
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

target
string

range

A fragment of a document that can contain nodes and parts of text nodes. See Range on MDN

type range = {
startContainer: node,
startOffset: int,
endContainer: node,
endOffset: int,
collapsed: bool,
commonAncestorContainer: node,
}

Record fields

startContainer

Returns range's start node. Read more on MDN

startOffset
int

Returns range's start offset. Read more on MDN

endContainer

Returns range's end node. Read more on MDN

endOffset
int

Returns range's end offset. Read more on MDN

collapsed
bool

Returns true if range is collapsed, and false otherwise. Read more on MDN

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

Module

There are methods and helpers defined in Range .

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") UnsafeUrl

remotePlaybackState

type remotePlaybackState =
| @as("connected") Connected
| @as("connecting") Connecting
| @as("disconnected") Disconnected

renderingContext

type renderingContext = WebAPI.Prelude.any

resizeQuality

type resizeQuality =
| @as("high") High
| @as("low") Low
| @as("medium") Medium
| @as("pixelated") Pixelated

screen

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

availWidth
int
availHeight
int
width
int
height
int
colorDepth
int
pixelDepth
int

screenOrientation

type screenOrientation = {
type_: orientationType,
angle: int,
}

Record fields

angle
int

Module

There are methods and helpers defined in ScreenOrientation .

scrollBehavior

type scrollBehavior =
| @as("auto") Auto
| @as("instant") Instant
| @as("smooth") Smooth

scrollIntoViewOptions

type scrollIntoViewOptions = {
mutable behavior?: scrollBehavior,
mutable block?: scrollLogicalPosition,
mutable inline?: scrollLogicalPosition,
}

Record fields

behavior
option< scrollBehavior >
block
inline

scrollLogicalPosition

type scrollLogicalPosition =
| @as("center") Center
| @as("end") End
| @as("nearest") Nearest
| @as("start") Start

scrollOptions

type scrollOptions = {mutable behavior?: scrollBehavior}

Record fields

behavior
option< scrollBehavior >

scrollToOptions

type scrollToOptions = {
mutable behavior?: scrollBehavior,
mutable left?: float,
mutable top?: float,
}

Record fields

behavior
option< scrollBehavior >
left
option< float >
top
option< float >

selection

A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). See Selection on MDN

type selection = {
anchorNode: Null.t<node>,
anchorOffset: int,
focusNode: Null.t<node>,
focusOffset: int,
isCollapsed: bool,
rangeCount: int,
type_: string,
direction: string,
}

Record fields

anchorNode
Null.t< node >
anchorOffset
int
focusNode
Null.t< node >
focusOffset
int
isCollapsed
bool
rangeCount
int
type_
string
direction
string

Module

There are methods and helpers defined in Selection .

selectionMode

type selectionMode =
| @as("end") End
| @as("preserve") Preserve
| @as("select") Select
| @as("start") Start

shadowRoot

type shadowRoot = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mode: shadowRootMode,
delegatesFocus: bool,
slotAssignment: slotAssignmentMode,
clonable: bool,
serializable: bool,
host: element,
mutable innerHTML: string,
styleSheets: styleSheetList,
mutable adoptedStyleSheets: array<cssStyleSheet>,
fullscreenElement: Null.t<element>,
activeElement: Null.t<element>,
pictureInPictureElement: Null.t<element>,
pointerLockElement: Null.t<element>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
delegatesFocus
bool
clonable
bool
serializable
bool
innerHTML
string
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

adoptedStyleSheets
array< cssStyleSheet >
fullscreenElement
Null.t< element >

Returns document's fullscreen element. Read more on MDN

activeElement
Null.t< element >

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

pictureInPictureElement
Null.t< element >
pointerLockElement
Null.t< element >

Module

There are methods and helpers defined in ShadowRoot .

shadowRootInit

type shadowRootInit = {
mutable mode: shadowRootMode,
mutable delegatesFocus?: bool,
mutable slotAssignment?: slotAssignmentMode,
mutable serializable?: bool,
}

Record fields

delegatesFocus
option< bool >
slotAssignment
option< slotAssignmentMode >
serializable
option< bool >

shadowRootMode

type shadowRootMode =
| @as("closed") Closed
| @as("open") Open

shareData

type shareData = {
mutable files?: array<WebAPI.FileAPI.file>,
mutable title?: string,
mutable text?: string,
mutable url?: string,
}

Record fields

files
option< array< WebAPI.FileAPI.file > >
title
option< string >
text
option< string >
url
option< string >

slotAssignmentMode

type slotAssignmentMode =
| @as("manual") Manual
| @as("named") Named

stylePropertyMap

type stylePropertyMap = {size: int}

Record fields

size
int

Module

There are methods and helpers defined in StylePropertyMap .

stylePropertyMapReadOnly

type stylePropertyMapReadOnly = {size: int}

Record fields

size
int

Module

There are methods and helpers defined in StylePropertyMapReadOnly .

styleSheet

A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. See StyleSheet on MDN

type styleSheet = {
type_: string,
href: Null.t<string>,
ownerNode: Null.t<unknown>,
parentStyleSheet: Null.t<cssStyleSheet>,
title: Null.t<string>,
media: mediaList,
mutable disabled: bool,
}

Record fields

type_
string
href
Null.t< string >
ownerNode
Null.t< unknown >
parentStyleSheet
Null.t< cssStyleSheet >
title
Null.t< string >
disabled
bool

styleSheetList

A list of StyleSheet. See StyleSheetList on MDN

type styleSheetList = {length: int}

Record fields

length
int

Module

There are methods and helpers defined in StyleSheetList .

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
option< bool >
stroke
option< bool >
markers
option< bool >
clipped
option< bool >

svgElement

All of the SVG DOM 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<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
assignedSlot: Null.t<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

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >
ariaAtomic
Null.t< string >
ariaAutoComplete
Null.t< string >
ariaBrailleLabel
Null.t< string >
ariaBrailleRoleDescription
Null.t< string >
ariaBusy
Null.t< string >
ariaChecked
Null.t< string >
ariaColCount
Null.t< string >
ariaColIndex
Null.t< string >
ariaColIndexText
Null.t< string >
ariaColSpan
Null.t< string >
ariaCurrent
Null.t< string >
ariaDescription
Null.t< string >
ariaDisabled
Null.t< string >
ariaExpanded
Null.t< string >
ariaHasPopup
Null.t< string >
ariaHidden
Null.t< string >
ariaKeyShortcuts
Null.t< string >
ariaLabel
Null.t< string >
ariaLevel
Null.t< string >
ariaLive
Null.t< string >
ariaModal
Null.t< string >
ariaMultiLine
Null.t< string >
ariaMultiSelectable
Null.t< string >
ariaOrientation
Null.t< string >
ariaPlaceholder
Null.t< string >
ariaPosInSet
Null.t< string >
ariaPressed
Null.t< string >
ariaReadOnly
Null.t< string >
ariaRequired
Null.t< string >
ariaRoleDescription
Null.t< string >
ariaRowCount
Null.t< string >
ariaRowIndex
Null.t< string >
ariaRowIndexText
Null.t< string >
ariaRowSpan
Null.t< string >
ariaSelected
Null.t< string >
ariaSetSize
Null.t< string >
ariaSort
Null.t< string >
ariaValueMax
Null.t< string >
ariaValueMin
Null.t< string >
ariaValueNow
Null.t< string >
ariaValueText
Null.t< string >
nonce
option< string >
autofocus
bool
tabIndex
int

svgGraphicsElement

SVG elements whose primary purpose is to directly render graphics into a group. See SVGGraphicsElement on MDN

type svgGraphicsElement = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
assignedSlot: Null.t<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

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >
ariaAtomic
Null.t< string >
ariaAutoComplete
Null.t< string >
ariaBrailleLabel
Null.t< string >
ariaBrailleRoleDescription
Null.t< string >
ariaBusy
Null.t< string >
ariaChecked
Null.t< string >
ariaColCount
Null.t< string >
ariaColIndex
Null.t< string >
ariaColIndexText
Null.t< string >
ariaColSpan
Null.t< string >
ariaCurrent
Null.t< string >
ariaDescription
Null.t< string >
ariaDisabled
Null.t< string >
ariaExpanded
Null.t< string >
ariaHasPopup
Null.t< string >
ariaHidden
Null.t< string >
ariaKeyShortcuts
Null.t< string >
ariaLabel
Null.t< string >
ariaLevel
Null.t< string >
ariaLive
Null.t< string >
ariaModal
Null.t< string >
ariaMultiLine
Null.t< string >
ariaMultiSelectable
Null.t< string >
ariaOrientation
Null.t< string >
ariaPlaceholder
Null.t< string >
ariaPosInSet
Null.t< string >
ariaPressed
Null.t< string >
ariaReadOnly
Null.t< string >
ariaRequired
Null.t< string >
ariaRoleDescription
Null.t< string >
ariaRowCount
Null.t< string >
ariaRowIndex
Null.t< string >
ariaRowIndexText
Null.t< string >
ariaRowSpan
Null.t< string >
ariaSelected
Null.t< string >
ariaSetSize
Null.t< string >
ariaSort
Null.t< string >
ariaValueMax
Null.t< string >
ariaValueMin
Null.t< string >
ariaValueNow
Null.t< string >
ariaValueText
Null.t< string >
nonce
option< string >
autofocus
bool
tabIndex
int

svgImageElement

Corresponds to the <image> element. See SVGImageElement on MDN

type svgImageElement = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<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: domTokenList,
mutable slot: string,
attributes: namedNodeMap,
shadowRoot: Null.t<shadowRoot>,
part: 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: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
assignedSlot: Null.t<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

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
namespaceURI
Null.t< string >

Returns the namespace. Read more on MDN

prefix
Null.t< string >

Returns the namespace prefix. Read more on MDN

localName
string

Returns the local name. Read more on MDN

tagName
string

Returns the HTML-uppercased qualified name. Read more on MDN

id
string

Returns the value of element's id content attribute. Can be set to change it. Read more on MDN

className
string

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
string

Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN

shadowRoot
Null.t< shadowRoot >

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN

scrollTop
float
scrollLeft
float
scrollWidth
int
scrollHeight
int
clientTop
int
clientLeft
int
clientWidth
int
clientHeight
int
currentCSSZoom
float
innerHTML
string
outerHTML
string
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >
ariaAtomic
Null.t< string >
ariaAutoComplete
Null.t< string >
ariaBrailleLabel
Null.t< string >
ariaBrailleRoleDescription
Null.t< string >
ariaBusy
Null.t< string >
ariaChecked
Null.t< string >
ariaColCount
Null.t< string >
ariaColIndex
Null.t< string >
ariaColIndexText
Null.t< string >
ariaColSpan
Null.t< string >
ariaCurrent
Null.t< string >
ariaDescription
Null.t< string >
ariaDisabled
Null.t< string >
ariaExpanded
Null.t< string >
ariaHasPopup
Null.t< string >
ariaHidden
Null.t< string >
ariaKeyShortcuts
Null.t< string >
ariaLabel
Null.t< string >
ariaLevel
Null.t< string >
ariaLive
Null.t< string >
ariaModal
Null.t< string >
ariaMultiLine
Null.t< string >
ariaMultiSelectable
Null.t< string >
ariaOrientation
Null.t< string >
ariaPlaceholder
Null.t< string >
ariaPosInSet
Null.t< string >
ariaPressed
Null.t< string >
ariaReadOnly
Null.t< string >
ariaRequired
Null.t< string >
ariaRoleDescription
Null.t< string >
ariaRowCount
Null.t< string >
ariaRowIndex
Null.t< string >
ariaRowIndexText
Null.t< string >
ariaRowSpan
Null.t< string >
ariaSelected
Null.t< string >
ariaSetSize
Null.t< string >
ariaSort
Null.t< string >
ariaValueMax
Null.t< string >
ariaValueMin
Null.t< string >
ariaValueNow
Null.t< string >
ariaValueText
Null.t< string >
nonce
option< string >
autofocus
bool
tabIndex
int

svgLength

Correspond to the <length> basic data type. See SVGLength on MDN

type svgLength = {}

text

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

type text = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
mutable data: string,
length: int,
previousElementSibling: Null.t<element>,
nextElementSibling: Null.t<element>,
wholeText: string,
assignedSlot: Null.t<htmlSlotElement>,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
data
string
length
int
previousElementSibling
Null.t< element >

Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN

nextElementSibling
Null.t< element >

Returns the first following sibling that is an element, and null otherwise. Read more on MDN

wholeText
string

Returns the combined data of all direct Text node siblings. Read more on MDN

assignedSlot
Null.t< htmlSlotElement >

Module

There are methods and helpers defined in Text .

textTrackList

type textTrackList = {length: int}

Record fields

length
int

Module

There are methods and helpers defined in TextTrackList .

timeRanges

Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. See TimeRanges on MDN

type timeRanges = {length: int}

Record fields

length
int

Returns the number of ranges in the object. Read more on MDN

Module

There are methods and helpers defined in TimeRanges .

timerHandler

type timerHandler = WebAPI.Prelude.any

treeWalker

The nodes of a document subtree and a position within them. See TreeWalker on MDN

type treeWalker = {
root: node,
whatToShow: int,
filter: Null.t<nodeFilter>,
mutable currentNode: node,
}

Record fields

whatToShow
int
filter
Null.t< nodeFilter >
currentNode

Module

There are methods and helpers defined in TreeWalker .

userActivation

type userActivation = {hasBeenActive: bool, isActive: bool}

Record fields

hasBeenActive
bool
isActive
bool

validityState

The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. See ValidityState on MDN

type validityState = {
valueMissing: bool,
typeMismatch: bool,
patternMismatch: bool,
tooLong: bool,
tooShort: bool,
rangeUnderflow: bool,
rangeOverflow: bool,
stepMismatch: bool,
badInput: bool,
customError: bool,
valid: bool,
}

Record fields

valueMissing
bool
typeMismatch
bool
patternMismatch
bool
tooLong
bool
tooShort
bool
rangeUnderflow
bool
rangeOverflow
bool
stepMismatch
bool
badInput
bool
customError
bool
valid
bool

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
option< bool >
typeMismatch
option< bool >
patternMismatch
option< bool >
tooLong
option< bool >
tooShort
option< bool >
rangeUnderflow
option< bool >
rangeOverflow
option< bool >
stepMismatch
option< bool >
badInput
option< bool >
customError
option< bool >

vibratePattern

@unboxed
type vibratePattern = Int(int) | IntArray(array<int>)

videoColorPrimaries

type videoColorPrimaries =
| @as("bt470bg") Bt470bg
| @as("bt709") Bt709
| @as("smpte170m") Smpte170m

videoColorSpace

type videoColorSpace = {
primaries: Null.t<videoColorPrimaries>,
transfer: Null.t<videoTransferCharacteristics>,
matrix: Null.t<videoMatrixCoefficients>,
fullRange: Null.t<bool>,
}

Record fields

fullRange
Null.t< bool >

Module

There are methods and helpers defined in VideoColorSpace .

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
option< Null.t< videoColorPrimaries > >
transfer
option< Null.t< videoTransferCharacteristics > >
matrix
option< Null.t< videoMatrixCoefficients > >
fullRange
option< Null.t< bool > >

videoFrame

type videoFrame = {
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

codedWidth
int
codedHeight
int
codedRect
Null.t< domRectReadOnly >
visibleRect
Null.t< domRectReadOnly >
displayWidth
int
displayHeight
int
duration
Null.t< int >
timestamp
int

Module

There are methods and helpers defined in VideoFrame .

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

codedWidth
int
codedHeight
int
timestamp
int
duration
option< int >
layout
option< array< planeLayout > >
visibleRect
option< domRectInit >
displayWidth
option< int >
displayHeight
option< int >
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
float
expectedDisplayTime
float
width
int
height
int
mediaTime
float
presentedFrames
int
processingDuration
option< float >
captureTime
option< float >
receiveTime
option< float >
rtpTimestamp
option< int >

videoFrameCopyToOptions

type videoFrameCopyToOptions = {
mutable rect?: domRectInit,
mutable layout?: array<planeLayout>,
mutable format?: videoPixelFormat,
mutable colorSpace?: predefinedColorSpace,
}

Record fields

rect
option< domRectInit >
layout
option< array< planeLayout > >
format
option< videoPixelFormat >
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
option< int >
timestamp
option< int >
alpha
option< alphaOption >
visibleRect
option< domRectInit >
displayWidth
option< int >
displayHeight
option< int >

videoFrameRequestCallback

type videoFrameRequestCallback = float => videoFrameCallbackMetadata => unit

videoMatrixCoefficients

type videoMatrixCoefficients =
| @as("bt470bg") Bt470bg
| @as("bt709") Bt709
| @as("rgb") Rgb
| @as("smpte170m") Smpte170m

videoPixelFormat

type videoPixelFormat =
| BGRA
| BGRX
| I420
| I420A
| I422
| I444
| NV12
| RGBA
| RGBX

videoPlaybackQuality

Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. See VideoPlaybackQuality on MDN

type videoPlaybackQuality = {
creationTime: float,
droppedVideoFrames: int,
totalVideoFrames: int,
}

Record fields

creationTime
float
droppedVideoFrames
int
totalVideoFrames
int

videoTransferCharacteristics

type videoTransferCharacteristics =
| @as("bt709") Bt709
| @as("iec61966-2-1") Iec6196621
| @as("smpte170m") Smpte170m

voidFunction

type voidFunction = unit => unit

window

A window containing a DOM document; the document property points to the DOM document loaded in that window. See Window on MDN

type window = {
window: window,
self: window,
document: document,
mutable name: string,
mutable location: location,
history: WebAPI.HistoryAPI.history,
customElements: customElementRegistry,
locationbar: barProp,
menubar: barProp,
personalbar: barProp,
scrollbars: barProp,
statusbar: barProp,
toolbar: barProp,
closed: bool,
frames: window,
length: int,
top: Null.t<window>,
mutable opener: JSON.t,
parent: window,
frameElement: Null.t<element>,
navigator: navigator,
screen: screen,
visualViewport: Null.t<
WebAPI.VisualViewportAPI.visualViewport,
>,
innerWidth: int,
innerHeight: int,
scrollX: float,
scrollY: float,
screenX: int,
screenLeft: int,
screenY: int,
screenTop: int,
outerWidth: int,
outerHeight: int,
devicePixelRatio: float,
speechSynthesis: WebAPI.WebSpeechAPI.speechSynthesis,
origin: string,
isSecureContext: bool,
crossOriginIsolated: bool,
indexedDB: WebAPI.IndexedDBAPI.idbFactory,
crypto: WebAPI.WebCryptoAPI.crypto,
performance: WebAPI.PerformanceAPI.performance,
caches: WebAPI.ServiceWorkerAPI.cacheStorage,
sessionStorage: WebAPI.WebStorageAPI.storage,
localStorage: WebAPI.WebStorageAPI.storage,
}

Record fields

name
string
customElements

Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. Read more on MDN

locationbar

Returns true if the location bar is visible; otherwise, returns false. Read more on MDN

menubar

Returns true if the menu bar is visible; otherwise, returns false. Read more on MDN

personalbar

Returns true if the personal bar is visible; otherwise, returns false. Read more on MDN

scrollbars

Returns true if the scrollbars are visible; otherwise, returns false. Read more on MDN

statusbar

Returns true if the status bar is visible; otherwise, returns false. Read more on MDN

toolbar

Returns true if the toolbar is visible; otherwise, returns false. Read more on MDN

closed
bool

Returns true if the window has been closed, false otherwise. Read more on MDN

length
int
top
Null.t< window >
opener
JSON.t
parent

Refers to either the parent WindowProxy, or itself.

It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. Read more on MDN

frameElement
Null.t< element >
innerWidth
int
innerHeight
int
scrollX
float
scrollY
float
screenX
int
screenLeft
int
screenY
int
screenTop
int
outerWidth
int
outerHeight
int
devicePixelRatio
float
origin
string
isSecureContext
bool
crossOriginIsolated
bool

Module

There are methods and helpers defined in Window .

windowPostMessageOptions

type windowPostMessageOptions = {
mutable transfer?: array<Dict.t<string>>,
mutable targetOrigin?: string,
}

Record fields

transfer
option< array< Dict.t< string > > >
targetOrigin
option< string >

xmlDocument

An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. See XMLDocument on MDN

type xmlDocument = {
nodeType: int,
nodeName: string,
baseURI: string,
isConnected: bool,
ownerDocument: Null.t<document>,
parentNode: Null.t<node>,
parentElement: Null.t<htmlElement>,
childNodes: nodeListOf<node>,
firstChild: Null.t<node>,
lastChild: Null.t<node>,
previousSibling: Null.t<node>,
nextSibling: Null.t<node>,
mutable nodeValue: Null.t<string>,
mutable textContent: Null.t<string>,
implementation: domImplementation,
uRL: string,
documentURI: string,
compatMode: string,
characterSet: string,
contentType: string,
doctype: Null.t<documentType>,
documentElement: htmlElement,
scrollingElement: Null.t<element>,
fullscreenEnabled: bool,
mutable location: location,
referrer: string,
mutable cookie: string,
lastModified: string,
readyState: documentReadyState,
mutable title: string,
mutable dir: string,
mutable body: htmlElement,
head: htmlHeadElement,
images: htmlCollectionOf<htmlImageElement>,
embeds: htmlCollectionOf<htmlEmbedElement>,
plugins: htmlCollectionOf<htmlEmbedElement>,
links: htmlCollectionOf<WebAPI.Prelude.any>,
forms: htmlCollectionOf<htmlFormElement>,
scripts: htmlCollectionOf<htmlScriptElement>,
currentScript: Null.t<htmlElement>,
defaultView: Null.t<window>,
mutable designMode: string,
hidden: bool,
visibilityState: documentVisibilityState,
pictureInPictureEnabled: bool,
fragmentDirective: fragmentDirective,
timeline: documentTimeline,
fonts: WebAPI.CSSFontLoadingAPI.fontFaceSet,
styleSheets: styleSheetList,
mutable adoptedStyleSheets: array<cssStyleSheet>,
fullscreenElement: Null.t<element>,
activeElement: Null.t<element>,
pictureInPictureElement: Null.t<element>,
pointerLockElement: Null.t<element>,
children: htmlCollection,
firstElementChild: Null.t<element>,
lastElementChild: Null.t<element>,
childElementCount: int,
}

Record fields

nodeType
int

Returns the type of node. Read more on MDN

nodeName
string

Returns a string appropriate for the type of node. Read more on MDN

baseURI
string

Returns node's node document's document base URL. Read more on MDN

isConnected
bool

Returns true if node is connected and false otherwise. Read more on MDN

ownerDocument
Null.t< document >

Returns the node document. Returns null for documents. Read more on MDN

parentNode
Null.t< node >

Returns the parent. Read more on MDN

parentElement
Null.t< htmlElement >

Returns the parent element. Read more on MDN

childNodes

Returns the children. Read more on MDN

firstChild
Null.t< node >

Returns the first child. Read more on MDN

lastChild
Null.t< node >

Returns the last child. Read more on MDN

previousSibling
Null.t< node >

Returns the previous sibling. Read more on MDN

nextSibling
Null.t< node >

Returns the next sibling. Read more on MDN

nodeValue
Null.t< string >
textContent
Null.t< string >
implementation

Gets the implementation object of the current document. Read more on MDN

uRL
string

Sets or gets the URL for the current document. Read more on MDN

documentURI
string

Returns document's URL. Read more on MDN

compatMode
string

Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN

characterSet
string

Returns document's encoding. Read more on MDN

contentType
string

Returns document's content type. Read more on MDN

doctype
Null.t< documentType >

Gets an object representing the document type declaration associated with the current document. Read more on MDN

documentElement

Gets a reference to the root node of the document. Read more on MDN

scrollingElement
Null.t< element >
fullscreenEnabled
bool

Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN

location

Contains information about the current URL. Read more on MDN

referrer
string

Gets the URL of the location that referred the user to the current page. Read more on MDN

string

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
string

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

title
string

Contains the title of the document. Read more on MDN

dir
string

Sets or retrieves a value that indicates the reading order of the object. Read more on MDN

body

Specifies the beginning and end of the document body. Read more on MDN

head

Returns the head element. 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

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
Null.t< htmlElement >

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

defaultView
Null.t< window >

Returns the Window object of the active document. Read more on MDN

designMode
string

Sets or gets a value that indicates whether the document can be edited. Read more on MDN

hidden
bool
pictureInPictureEnabled
bool
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

adoptedStyleSheets
array< cssStyleSheet >
fullscreenElement
Null.t< element >

Returns document's fullscreen element. Read more on MDN

activeElement
Null.t< element >

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

pictureInPictureElement
Null.t< element >
pointerLockElement
Null.t< element >
children

Returns the child elements. Read more on MDN

firstElementChild
Null.t< element >

Returns the first child that is an element, and null otherwise. Read more on MDN

lastElementChild
Null.t< element >

Returns the last child that is an element, and null otherwise. Read more on MDN

childElementCount
int

xPathExpression

This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. See XPathExpression on MDN

type xPathExpression = {}

Module

There are methods and helpers defined in XPathExpression .

xPathNSResolver

type xPathNSResolver = WebAPI.Prelude.any

xPathResult

The results generated by evaluating an XPath expression within the context of a given node. See XPathResult on MDN

type xPathResult = {
resultType: int,
numberValue: float,
stringValue: string,
booleanValue: bool,
singleNodeValue: Null.t<node>,
invalidIteratorState: bool,
snapshotLength: int,
}

Record fields

resultType
int
numberValue
float
stringValue
string
booleanValue
bool
singleNodeValue
Null.t< node >
invalidIteratorState
bool
snapshotLength
int

Module

There are methods and helpers defined in XPathResult .