DOMAPI
Types
abstractRange
type abstractRange = { startContainer: node, startOffset: int, endContainer: node, endOffset: int, collapsed: bool,}
Record fields
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<animation>, finished: promise<animation>, mutable startTime: Null.t<float>, mutable currentTime: Null.t<float>,}
Record fields
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
assignedNodesOptions
type assignedNodesOptions = {mutable flatten?: bool}
Record fields
flatten
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autoFillBase
type autoFillBase = @as("off") Off | @as("on") On
barProp
type barProp = {visible: bool}
Record fields
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
colorspace
desynchronized
willReadFrequently
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
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
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
characterData
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
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
checkVisibilityCSS
contentVisibilityAuto
opacityProperty
visibilityProperty
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
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
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
progress
currentIteration
startTime
endTime
activeDuration
localTime
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
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
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
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
cssStyleSheetInit
type cssStyleSheetInit = { mutable baseURL?: string, mutable media?: unknown, mutable disabled?: bool,}
Record fields
baseURL
media
disabled
customElementConstructor
type customElementConstructor = htmlElement
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
customElementRegistry
type customElementRegistry = {}
Module
There are methods and helpers defined in CustomElementRegistry .
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the URL of the location that referred the user to the current page. Read more on MDN
cookie
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
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
Module
There are methods and helpers defined in DocumentTimeline .
documentTimelineOptions
type documentTimelineOptions = {mutable originTime?: float}
Record fields
originTime
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
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
domMatrix2DInit
type domMatrix2DInit = { mutable a?: float, mutable b?: float, mutable c?: float, mutable d?: float, mutable e?: float, mutable f?: float, mutable m11?: float, mutable m12?: float, mutable m21?: float, mutable m22?: float, mutable m41?: float, mutable m42?: float,}
Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
domMatrixInit
type domMatrixInit = { mutable a?: float, mutable b?: float, mutable c?: float, mutable d?: float, mutable e?: float, mutable f?: float, mutable m11?: float, mutable m12?: float, mutable m21?: float, mutable m22?: float, mutable m41?: float, mutable m42?: float, mutable m13?: float, mutable m14?: float, mutable m23?: float, mutable m24?: float, mutable m31?: float, mutable m32?: float, mutable m33?: float, mutable m34?: float, mutable m43?: float, mutable m44?: float, mutable is2D?: bool,}
Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
m13
m14
m23
m24
m31
m32
m33
m34
m43
m44
is2D
domMatrixReadOnly
type domMatrixReadOnly = { a: float, b: float, c: float, d: float, e: float, f: float, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float,}
Record fields
domPoint
type domPoint = {x: float, y: float, z: float, w: float}
Record fields
domPointInit
type domPointInit = { mutable x?: float, mutable y?: float, mutable z?: float, mutable w?: float,}
Record fields
x
y
z
w
domPointReadOnly
type domPointReadOnly = { 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
domRectInit
type domRectInit = { mutable x?: float, mutable y?: float, mutable width?: float, mutable height?: float,}
Record fields
x
y
width
height
domRectList
type domRectList = {}
domRectReadOnly
type domRectReadOnly = { x: float, y: float, width: float, height: float, top: float, right: float, bottom: float, left: float,}
Record fields
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
value
Returns the associated set as string.
Can be set, to change the associated attribute. Read more on MDN
effectTiming
type effectTiming = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown,}
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
element
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Element .
elementCreationOptions
type elementCreationOptions = {mutable is?: string}
Record fields
is
elementDefinitionOptions
type elementDefinitionOptions = {mutable extends?: string}
Record fields
extends
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
Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. Read more on MDN
form
Returns the form owner of internals's target element. Read more on MDN
willValidate
Returns true if internals's target element will be validated when the form is submitted; false otherwise. Read more on MDN
validity
Returns the ValidityState object for internals's target element. Read more on MDN
validationMessage
Returns the error message that would be shown to the user if internals's target element was to be checked for validity. Read more on MDN
labels
Returns a NodeList of all the label elements that internals's target element is associated with. Read more on MDN
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
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
focusOptions
type focusOptions = {mutable preventScroll?: bool}
Record fields
preventScroll
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
getHTMLOptions
type getHTMLOptions = { mutable serializableShadowRoots?: bool, mutable shadowRoots?: array<shadowRoot>,}
Record fields
serializableShadowRoots
shadowRoots
getRootNodeOptions
type getRootNodeOptions = {mutable composed?: bool}
Record fields
composed
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
protocol
Returns the hyperlink's URL's scheme.
Can be set, to change the URL's scheme. Read more on MDN
username
Returns the hyperlink's URL's username.
Can be set, to change the URL's username. Read more on MDN
password
Returns the hyperlink's URL's password.
Can be set, to change the URL's password. Read more on MDN
host
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
Returns the hyperlink's URL's host.
Can be set, to change the URL's host. Read more on MDN
port
Returns the hyperlink's URL's port.
Can be set, to change the URL's port. Read more on MDN
pathname
Returns the hyperlink's URL's path.
Can be set, to change the URL's path. Read more on MDN
search
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
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
protocol
Returns the hyperlink's URL's scheme.
Can be set, to change the URL's scheme. Read more on MDN
username
Returns the hyperlink's URL's username.
Can be set, to change the URL's username. Read more on MDN
password
Returns the hyperlink's URL's password.
Can be set, to change the URL's password. Read more on MDN
host
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
Returns the hyperlink's URL's host.
Can be set, to change the URL's host. Read more on MDN
port
Returns the hyperlink's URL's port.
Can be set, to change the URL's port. Read more on MDN
pathname
Returns the hyperlink's URL's path.
Can be set, to change the URL's path. Read more on MDN
search
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
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlBaseElement
Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. See HTMLBaseElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlBodyElement
Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. See HTMLBodyElement on MDN
type htmlBodyElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlbrElement
A HTML line break element (<br>). It inherits from HTMLElement. See HTMLBRElement on MDN
type htmlbrElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlButtonElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlCanvasElement
Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. See HTMLCanvasElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlCollection
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
htmlCollectionOf
type htmlCollectionOf<'t> = {length: int}
Record fields
htmlDataElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. See HTMLDataElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDataListElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
options
Returns an HTMLCollection of the option elements of the datalist element. Read more on MDN
htmlDialogElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDivElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. See HTMLDivElement on MDN
type htmlDivElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmldListElement
Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. See HTMLDListElement on MDN
type htmldListElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlEmbedElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlFieldSetElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. See HTMLFieldSetElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
elements
Returns an HTMLCollection of the form controls in the element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlFormControlsCollection
A collection of HTML form control elements. See HTMLFormControlsCollection on MDN
type htmlFormControlsCollection = {length: int}
Record fields
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
acceptCharset
Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. Read more on MDN
action
Sets or retrieves the 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
elements
Retrieves a collection, in source order, of all controls in a given form. Read more on MDN
htmlFrameSetElement
Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. See HTMLFrameSetElement on MDN
type htmlFrameSetElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadingElement
The different heading elements. It inherits methods and properties from the HTMLElement interface. See HTMLHeadingElement on MDN
type htmlHeadingElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlhrElement
Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. See HTMLHRElement on MDN
type htmlhrElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHtmlElement
Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. See HTMLHtmlElement on MDN
type htmlHtmlElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmliFrameElement
Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. See HTMLIFrameElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
htmlImageElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
useMap
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. Read more on MDN
loading
Sets or retrieves the policy for loading image elements that are outside the viewport. Read more on MDN
htmlInputElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autocomplete
Specifies whether autocomplete is applied to an editable text field. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
indeterminate
When set, overrides the rendering of checkbox controls so that the current value is not visible. Read more on MDN
list
Specifies the ID of a pre-defined datalist of options for an input element. Read more on MDN
max
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
min
Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
pattern
Gets or sets a string containing a regular expression that the user's input must match. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
step
Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. Read more on MDN
valueAsDate
Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
selectionEnd
Gets or sets the end position or offset of a text selection. Read more on MDN
htmlLabelElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlFor
Sets or retrieves the object to which the given label object is assigned. Read more on MDN
control
Returns the form control that is associated with this element. Read more on MDN
htmlLegendElement
The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. See HTMLLegendElement on MDN
type htmlLegendElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlliElement
Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. See HTMLLIElement on MDN
type htmlliElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlLinkElement
Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. See HTMLLinkElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
htmlMapElement
Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. See HTMLMapElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
areas
Retrieves a collection of the area objects defined for the given map object. Read more on MDN
htmlMediaElement
Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. See HTMLMediaElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlMenuElement
type htmlMenuElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlMetaElement
Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. See HTMLMetaElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
name
Sets or retrieves the value specified in the content attribute of the meta object. Read more on MDN
httpEquiv
Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. Read more on MDN
htmlMeterElement
The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. See HTMLMeterElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlModElement
Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. See HTMLModElement on MDN
type htmlModElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlObjectElement
Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. See HTMLObjectElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmloListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. See HTMLOListElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlOptGroupElement
Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. See HTMLOptGroupElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
htmlOptionElement
type htmlOptionElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
selected
Sets or retrieves whether the option in the list box is the default item. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
htmlOptionsCollection
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
selectedIndex
Returns the index of the first selected item, if any, or −1 if there is no selected item.
Can be set, to change the selection. Read more on MDN
htmlOutputElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlParagraphElement
Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. See HTMLParagraphElement on MDN
type htmlParagraphElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPictureElement
A <picture> HTML element. It doesn't implement specific properties or methods. See HTMLPictureElement on MDN
type htmlPictureElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPreElement
Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). See HTMLPreElement on MDN
type htmlPreElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlProgressElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. See HTMLProgressElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
value
Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. Read more on MDN
position
Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). Read more on MDN
htmlQuoteElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. See HTMLQuoteElement on MDN
type htmlQuoteElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlScriptElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
src
Retrieves the URL to an external file that contains the source code or data. Read more on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
type_
Retrieves the type of select control based on the value of the MULTIPLE attribute. Read more on MDN
options
Returns an HTMLOptionsCollection of the list of options. Read more on MDN
selectedIndex
Sets or retrieves the index of the selected option in a select object. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlSlotElement
type htmlSlotElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSourceElement
Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. See HTMLSourceElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSpanElement
A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLSpanElement on MDN
type htmlSpanElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlStyleElement
A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. See HTMLStyleElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCaptionElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCellElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
colSpan
Sets or retrieves the number columns in the table that the object should span. Read more on MDN
headers
Sets or retrieves a list of header cells that provide information for the object. Read more on MDN
cellIndex
Retrieves the position of the object in the cells collection of a row. Read more on MDN
scope
Sets or retrieves the group of cells in a table to which the object's information applies. Read more on MDN
htmlTableElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
tBodies
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTableRowElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rowIndex
Retrieves the position of the object in the rows collection for the table. Read more on MDN
cells
Retrieves a collection of all cells in the table row. Read more on MDN
htmlTableSectionElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTemplateElement
Enables access to the contents of an HTML <template> element. See HTMLTemplateElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTextAreaElement
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
readOnly
Sets or retrieves the value indicated whether the content of the object is read-only. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
value
Retrieves or sets the text in the entry field of the textArea element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
htmlTimeElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. See HTMLTimeElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTitleElement
Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. See HTMLTitleElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTrackElement
The HTMLTrackElement See HTMLTrackElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmluListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. See HTMLUListElement on MDN
type htmluListElement = { 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlUnknownElement
An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLUnknownElement on MDN
type htmlUnknownElement = { namespaceURI: Null.t<string>, prefix: Null.t<string>, localName: string, tagName: string, mutable id: string, mutable className: string, classList: 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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlVideoElement
Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. See HTMLVideoElement on MDN
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
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
videoWidth
Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
videoHeight
Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
poster
Gets or sets a 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
idleDeadline
type idleDeadline = {didTimeout: bool}
Record fields
Module
There are methods and helpers defined in IdleDeadline .
idleRequestCallback
type idleRequestCallback = idleDeadline => unit
idleRequestOptions
type idleRequestOptions = {mutable timeout?: int}
Record fields
timeout
imageBitmapOptions
type imageBitmapOptions = { mutable imageOrientation?: imageOrientation, mutable premultiplyAlpha?: premultiplyAlpha, mutable colorSpaceConversion?: colorSpaceConversion, mutable resizeWidth?: int, mutable resizeHeight?: int, mutable resizeQuality?: resizeQuality,}
Record fields
imageOrientation
premultiplyAlpha
colorSpaceConversion
resizeWidth
resizeHeight
resizeQuality
imageBitmapSource
type 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
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
height
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
data
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. Read more on MDN
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
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
id
timeline
keyframeEffectOptions
type keyframeEffectOptions = { mutable fill?: fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable composite?: compositeOperation, mutable pseudoElement?: Null.t<string>, mutable iterationComposite?: iterationCompositeOperation,}
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
location
@editor.completeFrom(Window) The location (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
Returns the Location object's URL.
Can be set, to navigate to the given URL. Read more on MDN
protocol
Returns the Location object's URL's scheme.
Can be set, to navigate to the same URL with a changed scheme. Read more on MDN
host
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
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
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
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
search
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
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
mediaList
type mediaList = {mutable mediaText: string, length: int}
Record fields
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
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_
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
previousSibling
Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN
nextSibling
Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN
attributeName
Returns the local name of the changed attribute, and null otherwise. Read more on MDN
attributeNamespace
Returns the namespace of the changed attribute, and null otherwise. Read more on MDN
oldValue
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
Module
There are methods and helpers defined in NamedNodeMap .
navigator
The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. See Navigator on MDN
type navigator = { 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
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
Module
There are methods and helpers defined in Node .
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
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
Module
There are methods and helpers defined in NodeList .
nodeListOf
type nodeListOf<'tNode> = {length: int}
Record fields
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
endDelay
fill
iterationStart
iterations
duration
direction
easing
playbackRate
orientationType
type orientationType = | @as("landscape-primary") LandscapePrimary | @as("landscape-secondary") LandscapeSecondary | @as("portrait-primary") PortraitPrimary | @as("portrait-secondary") PortraitSecondary
planeLayout
type planeLayout = { mutable offset: int, mutable stride: int,}
Record fields
offset
stride
playbackDirection
type playbackDirection = | @as("alternate") Alternate | @as("alternate-reverse") AlternateReverse | @as("normal") Normal | @as("reverse") Reverse
pointerLockOptions
type pointerLockOptions = { mutable unadjustedMovement?: bool,}
Record fields
unadjustedMovement
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
range
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
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
screenOrientation
type screenOrientation = { type_: orientationType, angle: int,}
Record fields
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
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
scrollToOptions
type scrollToOptions = { mutable behavior?: scrollBehavior, mutable left?: float, mutable top?: float,}
Record fields
behavior
left
top
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
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
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
mode
delegatesFocus
slotAssignment
serializable
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
title
text
url
slotAssignmentMode
type slotAssignmentMode = | @as("manual") Manual | @as("named") Named
staticRange
type staticRange = { startContainer: node, startOffset: int, endContainer: node, endOffset: int, collapsed: bool,}
Record fields
stylePropertyMap
type stylePropertyMap = {size: int}
Record fields
Module
There are methods and helpers defined in StylePropertyMap .
stylePropertyMapReadOnly
type stylePropertyMapReadOnly = {size: int}
Record fields
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
styleSheetList
A list of StyleSheet. See StyleSheetList on MDN
type styleSheetList = {length: int}
Record fields
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
stroke
markers
clipped
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgGraphicsElement
SVG elements whose primary purpose is to directly render graphics into a group. See SVGGraphicsElement on MDN
type svgGraphicsElement = { 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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgImageElement
Corresponds to the <image> element. See SVGImageElement on MDN
type svgImageElement = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t<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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
text
@editor.completeFrom(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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Text .
textTrackList
type textTrackList = {length: int}
Record fields
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
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
Module
There are methods and helpers defined in TreeWalker .
userActivation
type userActivation = {hasBeenActive: bool, isActive: bool}
Record fields
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
validityStateFlags
type validityStateFlags = { mutable valueMissing?: bool, mutable typeMismatch?: bool, mutable patternMismatch?: bool, mutable tooLong?: bool, mutable tooShort?: bool, mutable rangeUnderflow?: bool, mutable rangeOverflow?: bool, mutable stepMismatch?: bool, mutable badInput?: bool, mutable customError?: bool,}
Record fields
valueMissing
typeMismatch
patternMismatch
tooLong
tooShort
rangeUnderflow
rangeOverflow
stepMismatch
badInput
customError
vibratePattern
@unboxedtype vibratePattern = Int(int) | IntArray(array<int>)
videoColorPrimaries
type videoColorPrimaries = | @as("bt470bg") Bt470bg | @as("bt709") Bt709 | @as("smpte170m") Smpte170m
videoColorSpace
type videoColorSpace = { primaries: Null.t<videoColorPrimaries>, transfer: Null.t<videoTransferCharacteristics>, matrix: Null.t<videoMatrixCoefficients>, fullRange: Null.t<bool>,}
Record fields
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
transfer
matrix
fullRange
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
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
format
codedWidth
codedHeight
timestamp
duration
layout
visibleRect
displayWidth
displayHeight
colorSpace
videoFrameCallbackMetadata
type videoFrameCallbackMetadata = { mutable presentationTime: float, mutable expectedDisplayTime: float, mutable width: int, mutable height: int, mutable mediaTime: float, mutable presentedFrames: int, mutable processingDuration?: float, mutable captureTime?: float, mutable receiveTime?: float, mutable rtpTimestamp?: int,}
Record fields
presentationTime
expectedDisplayTime
width
height
mediaTime
presentedFrames
processingDuration
captureTime
receiveTime
rtpTimestamp
videoFrameCopyToOptions
type videoFrameCopyToOptions = { mutable rect?: domRectInit, mutable layout?: array<planeLayout>, mutable format?: videoPixelFormat, mutable colorSpace?: predefinedColorSpace,}
Record fields
rect
layout
format
colorSpace
videoFrameInit
type videoFrameInit = { mutable duration?: int, mutable timestamp?: int, mutable alpha?: alphaOption, mutable visibleRect?: domRectInit, mutable displayWidth?: int, mutable displayHeight?: int,}
Record fields
duration
timestamp
alpha
visibleRect
displayWidth
displayHeight
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
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.WebWorkersAPI.cacheStorage, sessionStorage: WebAPI.WebStorageAPI.storage, localStorage: WebAPI.WebStorageAPI.storage,}
Record fields
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
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
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
Module
There are methods and helpers defined in Window .
windowPostMessageOptions
type windowPostMessageOptions = { mutable transfer?: array<Dict.t<string>>, mutable targetOrigin?: string,}
Record fields
transfer
targetOrigin
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
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the URL of the location that referred the user to the current page. Read more on MDN
cookie
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
xPathExpression
This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its 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
Module
There are methods and helpers defined in XPathResult .