Experimental ReScript WebAPI Documentation 0.1.0-alpha-b46bc2c This is the API documentation for the experimental WebAPI module version 0.1.0-alpha-b46bc2c. More information can be found on https://rescript-lang.github.io/experimental-rescript-webapi/ WebApiFile: src/animation/Animation.res Module: WebAPI.Animation Types: - type animationPlayState = | @as("finished") Finished | @as("idle") Idle | @as("paused") Paused | @as("running") Running - type animationReplaceState = | @as("active") Active | @as("persisted") Persisted | @as("removed") Removed - type animationTimeline = private { currentTime: Null.t, } Description: [See AnimationTimeline on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) Fields: - currentTime: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) - type t = { mutable id: string, mutable effect: Null.t, mutable timeline: Null.t, mutable playbackRate: float, playState: animationPlayState, replaceState: animationReplaceState, pending: bool, ready: promise, finished: promise, mutable startTime: Null.t, mutable currentTime: Null.t, } Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation) Fields: - id: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/id) - effect: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/effect) - timeline: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/timeline) - playbackRate: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) - playState: animationPlayState - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/playState) - replaceState: animationReplaceState - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) - pending: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/pending) - ready: promise - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/ready) - finished: promise - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/finished) - startTime: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/startTime) - currentTime: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) - type compositeOperation = | @as("accumulate") Accumulate | @as("add") Add | @as("replace") Replace - type iterationCompositeOperation = | @as("accumulate") Accumulate | @as("replace") Replace - type keyframeEffectOptions = { mutable fill?: WebAPI.AnimationEffect.fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: WebAPI.AnimationEffect.playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable composite?: compositeOperation, mutable pseudoElement?: Nullable.t, mutable iterationComposite?: iterationCompositeOperation, } Fields: - fill: option - iterationStart: option - iterations: option - direction: option - easing: option - delay: option - endDelay: option - playbackRate: option - duration: option - composite: option - pseudoElement: option> - iterationComposite: option - type keyframeAnimationOptions = { mutable fill?: WebAPI.AnimationEffect.fillMode, mutable iterationStart?: float, mutable iterations?: float, mutable direction?: WebAPI.AnimationEffect.playbackDirection, mutable easing?: string, mutable delay?: float, mutable endDelay?: float, mutable playbackRate?: float, mutable duration?: unknown, mutable composite?: compositeOperation, mutable pseudoElement?: Nullable.t, mutable iterationComposite?: iterationCompositeOperation, mutable id?: string, mutable timeline?: Nullable.t, } Fields: - fill: option - iterationStart: option - iterations: option - direction: option - easing: option - delay: option - endDelay: option - playbackRate: option - duration: option - composite: option - pseudoElement: option> - iterationComposite: option - id: option - timeline: option> Functions: - let make: ( ~effect: WebAPI.AnimationEffect.t=?, ~timeline: animationTimeline=?, ) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation) - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let cancel: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/cancel) - let finish: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/finish) - let play: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/play) - let pause: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/pause) - let updatePlaybackRate: (t, float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) - let reverse: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/reverse) - let persist: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/persist) - let commitStyles: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) --- WebApiFile: src/animation/AnimationEffect.res Module: WebAPI.AnimationEffect Types: - type t = private {} Description: [See AnimationEffect on MDN](https://developer.mozilla.org/docs/Web/API/AnimationEffect) Fields: - type fillMode = | @as("auto") Auto | @as("backwards") Backwards | @as("both") Both | @as("forwards") Forwards | @as("none") None - type playbackDirection = | @as("alternate") Alternate | @as("alternate-reverse") AlternateReverse | @as("normal") Normal | @as("reverse") Reverse - 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, } Fields: - fill: option - iterationStart: option - iterations: option - direction: option - easing: option - delay: option - endDelay: option - playbackRate: option - duration: option - type getAnimationsOptions = {mutable subtree?: bool} Fields: - subtree: option - 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?: Nullable.t, mutable currentIteration?: Nullable.t, mutable startTime?: float, mutable endTime?: float, mutable activeDuration?: float, mutable localTime?: Nullable.t, } Fields: - fill: option - iterationStart: option - iterations: option - direction: option - easing: option - delay: option - endDelay: option - playbackRate: option - duration: option - progress: option> - currentIteration: option> - startTime: option - endTime: option - activeDuration: option - localTime: option> - 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, } Fields: - delay: option - endDelay: option - fill: option - iterationStart: option - iterations: option - duration: option - direction: option - easing: option - playbackRate: option Functions: - let getTiming: t => effectTiming Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) - let getComputedTiming: t => computedEffectTiming Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) - let updateTiming: (t, ~timing: optionalEffectTiming=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) --- WebApiFile: src/animation/DocumentTimeline.res Module: WebAPI.DocumentTimeline Functions: - let make: ( ~options: WebAPI.DOM.documentTimelineOptions=?, ) => WebAPI.DOM.documentTimeline Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) - let asAnimationTimeline: WebAPI.DOM.documentTimeline => WebAPI.Animation.animationTimeline --- WebApiFile: src/canvas/Canvas.res Module: WebAPI.Canvas Functions: - let createImageBitmap: ( ~image: WebAPI.HTMLImageElement.t, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap2: ( ~image: WebAPI.SVGElement.svgImageElement, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap3: ( ~image: WebAPI.HTMLVideoElement.t, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap4: ( ~image: WebAPI.HTMLCanvasElement.t, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap5: ( ~image: WebAPI.CanvasTypes.imageBitmap, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap6: ( ~image: WebAPI.CanvasTypes.offscreenCanvas, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap7: ( ~image: WebAPI.DOM.videoFrame, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap8: ( ~image: WebAPI.FileTypes.blob, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap9: ( ~image: WebAPI.DOM.imageData, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap10: ( ~image: WebAPI.HTMLImageElement.t, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap11: ( ~image: WebAPI.SVGElement.svgImageElement, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap12: ( ~image: WebAPI.HTMLVideoElement.t, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap13: ( ~image: WebAPI.HTMLCanvasElement.t, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap14: ( ~image: WebAPI.CanvasTypes.imageBitmap, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap15: ( ~image: WebAPI.CanvasTypes.offscreenCanvas, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap16: ( ~image: WebAPI.DOM.videoFrame, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap17: ( ~image: WebAPI.FileTypes.blob, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) - let createImageBitmap18: ( ~image: WebAPI.DOM.imageData, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~options: WebAPI.DOM.imageBitmapOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) --- WebApiFile: src/canvas/CanvasGradient.res Module: WebAPI.CanvasGradient Functions: - let addColorStop: ( WebAPI.CanvasTypes.canvasGradient, ~offset: float, ~color: string, ) => unit Description: Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) - let isInstanceOf: 't => bool --- WebApiFile: src/canvas/CanvasPattern.res Module: WebAPI.CanvasPattern Types: - type domMatrix2DInit = WebAPI.DOM.domMatrix2DInit Fields: - a: option - b: option - c: option - d: option - e: option - f: option - m11: option - m12: option - m21: option - m22: option - m41: option - m42: option Functions: - let setTransform: ( WebAPI.CanvasTypes.canvasPattern, ~transform: domMatrix2DInit=?, ) => unit Description: Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) - let isInstanceOf: 't => bool --- WebApiFile: src/canvas/CanvasRenderingContext2D.res Module: WebAPI.CanvasRenderingContext2D Functions: - let getFillStyle: WebAPI.DOM.canvasRenderingContext2D => WebAPI.CanvasTypes.fillStyle Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) - let setFillStyle: ( WebAPI.DOM.canvasRenderingContext2D, WebAPI.CanvasTypes.fillStyle, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) - let setFont: (WebAPI.DOM.canvasRenderingContext2D, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) - let setTextBaseline: ( WebAPI.DOM.canvasRenderingContext2D, WebAPI.CanvasTypes.canvasTextBaseline, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) - let save: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) - let restore: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) - let reset: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) - let isContextLost: WebAPI.DOM.canvasRenderingContext2D => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) - let scale: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) - let rotate: (WebAPI.DOM.canvasRenderingContext2D, float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) - let translate: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) - let transform: ( WebAPI.DOM.canvasRenderingContext2D, ~a: float, ~b: float, ~c: float, ~d: float, ~e: float, ~f: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) - let getTransform: WebAPI.DOM.canvasRenderingContext2D => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) - let setTransform: ( WebAPI.DOM.canvasRenderingContext2D, ~a: float, ~b: float, ~c: float, ~d: float, ~e: float, ~f: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) - let setTransform2: ( WebAPI.DOM.canvasRenderingContext2D, ~transform: WebAPI.DOM.domMatrix2DInit=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) - let resetTransform: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) - let createLinearGradient: ( WebAPI.DOM.canvasRenderingContext2D, ~x0: float, ~y0: float, ~x1: float, ~y1: float, ) => WebAPI.CanvasTypes.canvasGradient Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) - let createRadialGradient: ( WebAPI.DOM.canvasRenderingContext2D, ~x0: float, ~y0: float, ~r0: float, ~x1: float, ~y1: float, ~r1: float, ) => WebAPI.CanvasTypes.canvasGradient Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) - let createConicGradient: ( WebAPI.DOM.canvasRenderingContext2D, ~startAngle: float, ~x: float, ~y: float, ) => WebAPI.CanvasTypes.canvasGradient Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) - let createPattern: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLImageElement.t, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern2: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.SVGElement.svgImageElement, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern3: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLVideoElement.t, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern4: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLCanvasElement.t, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern5: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.imageBitmap, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern6: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.offscreenCanvas, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let createPattern7: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.DOM.videoFrame, ~repetition: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) - let clearRect: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) - let fillRect: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) - let strokeRect: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) - let beginPath: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) - let fill: ( WebAPI.DOM.canvasRenderingContext2D, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) - let fill2: ( WebAPI.DOM.canvasRenderingContext2D, ~path: WebAPI.CanvasTypes.path2D, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) - let stroke: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) - let stroke2: ( WebAPI.DOM.canvasRenderingContext2D, WebAPI.CanvasTypes.path2D, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) - let clip: ( WebAPI.DOM.canvasRenderingContext2D, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) - let clip2: ( WebAPI.DOM.canvasRenderingContext2D, ~path: WebAPI.CanvasTypes.path2D, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) - let isPointInPath: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) - let isPointInPath2: ( WebAPI.DOM.canvasRenderingContext2D, ~path: WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~fillRule: WebAPI.CanvasTypes.canvasFillRule=?, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) - let isPointInStroke: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) - let isPointInStroke2: ( WebAPI.DOM.canvasRenderingContext2D, ~path: WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) - let drawFocusIfNeeded: ( WebAPI.DOM.canvasRenderingContext2D, WebAPI.DOMTree.element, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) - let drawFocusIfNeeded2: ( WebAPI.DOM.canvasRenderingContext2D, ~path: WebAPI.CanvasTypes.path2D, ~element: WebAPI.DOMTree.element, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) - let fillText: ( WebAPI.DOM.canvasRenderingContext2D, ~text: string, ~x: float, ~y: float, ~maxWidth: float=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) - let strokeText: ( WebAPI.DOM.canvasRenderingContext2D, ~text: string, ~x: float, ~y: float, ~maxWidth: float=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) - let measureText: ( WebAPI.DOM.canvasRenderingContext2D, string, ) => WebAPI.CanvasTypes.textMetrics Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) - let drawImage: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLImageElement.t, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithSvg: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.SVGElement.svgImageElement, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideo: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLVideoElement.t, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithCanvas: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLCanvasElement.t, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithImageBitmap: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.imageBitmap, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithOffscreenCanvas: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.offscreenCanvas, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideoFrame: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.DOM.videoFrame, ~dx: float, ~dy: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLImageElement.t, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithSvgDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.SVGElement.svgImageElement, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideoDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLVideoElement.t, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithCanvasDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLCanvasElement.t, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithImageBitmapDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.imageBitmap, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithOffscreenCanvasDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.offscreenCanvas, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideoFrameDimensions: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.DOM.videoFrame, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLImageElement.t, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithSvgSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.SVGElement.svgImageElement, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideoSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLVideoElement.t, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithCanvasSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.HTMLCanvasElement.t, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithImageBitmapSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.imageBitmap, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithOffscreenCanvasSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.CanvasTypes.offscreenCanvas, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let drawImageWithVideoFrameSubRectangle: ( WebAPI.DOM.canvasRenderingContext2D, ~image: WebAPI.DOM.videoFrame, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) - let createImageData: ( WebAPI.DOM.canvasRenderingContext2D, ~sw: int, ~sh: int, ~settings: WebAPI.DOM.imageDataSettings=?, ) => WebAPI.DOM.imageData Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) - let createImageData2: ( WebAPI.DOM.canvasRenderingContext2D, WebAPI.DOM.imageData, ) => WebAPI.DOM.imageData Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) - let getImageData: ( WebAPI.DOM.canvasRenderingContext2D, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~settings: WebAPI.DOM.imageDataSettings=?, ) => WebAPI.DOM.imageData Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) - let putImageData: ( WebAPI.DOM.canvasRenderingContext2D, ~imagedata: WebAPI.DOM.imageData, ~dx: int, ~dy: int, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) - let putImageData2: ( WebAPI.DOM.canvasRenderingContext2D, ~imagedata: WebAPI.DOM.imageData, ~dx: int, ~dy: int, ~dirtyX: int, ~dirtyY: int, ~dirtyWidth: int, ~dirtyHeight: int, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) - let setLineDash: (WebAPI.DOM.canvasRenderingContext2D, array) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) - let getLineDash: WebAPI.DOM.canvasRenderingContext2D => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) - let closePath: WebAPI.DOM.canvasRenderingContext2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) - let moveTo: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) - let lineTo: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) - let quadraticCurveTo: ( WebAPI.DOM.canvasRenderingContext2D, ~cpx: float, ~cpy: float, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) - let bezierCurveTo: ( WebAPI.DOM.canvasRenderingContext2D, ~cp1x: float, ~cp1y: float, ~cp2x: float, ~cp2y: float, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) - let arcTo: ( WebAPI.DOM.canvasRenderingContext2D, ~x1: float, ~y1: float, ~x2: float, ~y2: float, ~radius: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) - let rect: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) - let roundRect: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let roundRect2: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let roundRect3: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let arc: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~radius: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) - let ellipse: ( WebAPI.DOM.canvasRenderingContext2D, ~x: float, ~y: float, ~radiusX: float, ~radiusY: float, ~rotation: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) - let getContextAttributes: WebAPI.DOM.canvasRenderingContext2D => WebAPI.CanvasTypes.canvasRenderingContext2DSettings Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) --- WebApiFile: src/canvas/FillStyle.res Module: WebAPI.FillStyle Types: - type decoded = | String(string) | CanvasGradient(WebAPI.CanvasTypes.canvasGradient) | CanvasPattern(WebAPI.CanvasTypes.canvasPattern) Description: Represents a decoded version of the abstract `fillStyle` type, used in Context2D. Functions: - let fromString: string => WebAPI.CanvasTypes.fillStyle - let fromCanvasGradient: WebAPI.CanvasTypes.canvasGradient => WebAPI.CanvasTypes.fillStyle - let fromCanvasPattern: WebAPI.CanvasTypes.canvasPattern => WebAPI.CanvasTypes.fillStyle - let toString: WebAPI.CanvasTypes.fillStyle => string - let toCanvasGradient: WebAPI.CanvasTypes.fillStyle => WebAPI.CanvasTypes.canvasGradient - let toCanvasPattern: WebAPI.CanvasTypes.fillStyle => WebAPI.CanvasTypes.canvasPattern - let decode: WebAPI.CanvasTypes.fillStyle => decoded --- WebApiFile: src/canvas/HTMLCanvasElement.res Module: WebAPI.HTMLCanvasElement Types: - type t = { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable width: int, mutable height: int, } Description: Provides properties and methods for manipulating the layout and presentation of elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. [See HTMLCanvasElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement) TODO: mark as private once mutating fields of private records is allowed Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - width: int - Gets or sets the width of a canvas element on a document. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width) - height: int - Gets or sets the height of a canvas element on a document. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) - let isInstanceOf: 'value => bool Description: `isInstanceOf(value)` Returns whether `value` is an `HTMLCanvasElement` created in the current JavaScript realm. This is a runtime check. It returns `false` when `globalThis.HTMLCanvasElement` is unavailable, such as in some server or worker environments. - let classify: 'value => option Description: `classify(value)` Safely narrows a value from a broad DOM element type to `HTMLCanvasElement.t`. Use this for values returned by APIs such as `Document.getElementById`. Returns `Some(canvas)` for an `HTMLCanvasElement` in the current realm, and `None` when the value is not a canvas or when the `HTMLCanvasElement` constructor is unavailable. ```res switch element->HTMLCanvasElement.classify { | Some(canvas) => canvas->HTMLCanvasElement.getContext2D | None => Null } ``` - let getContext2D: ( t, ~options: WebAPI.CanvasTypes.canvasRenderingContext2DSettings=?, ) => Null.t Description: Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. Creates a CanvasRenderingContext2D object representing a two-dimensional rendering context. [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#2d) - let getContextWebGL: ( t, ~options: WebAPI.CanvasTypes.webGLContextAttributes=?, ) => Null.t Description: Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) - let getContextWebGL2: ( t, ~options: WebAPI.CanvasTypes.webGLContextAttributes=?, ) => Null.t Description: Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) - let getContextBitmapRenderer: ( t, ~options: WebAPI.CanvasTypes.imageBitmapRenderingContextSettings=?, ) => Null.t Description: Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) - let toDataURL: (t, ~type_: string=?, ~quality: JSON.t=?) => string Description: Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) - let toBlob: ( t, ~callback: WebAPI.FileTypes.blob => unit, ~type_: string=?, ~quality: JSON.t=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) - let transferControlToOffscreen: t => WebAPI.CanvasTypes.offscreenCanvas Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) - let captureStream: ( t, ~frameRequestRate: float=?, ) => WebAPI.MediaCaptureAndStreamsTypes.mediaStream Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) --- WebApiFile: src/canvas/ImageBitmap.res Module: WebAPI.ImageBitmap Functions: - let close: WebAPI.CanvasTypes.imageBitmap => unit Description: Releases imageBitmap's underlying bitmap data. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close) --- WebApiFile: src/canvas/ImageBitmapRenderingContext.res Module: WebAPI.ImageBitmapRenderingContext Functions: - let transferFromImageBitmap: ( WebAPI.CanvasTypes.imageBitmapRenderingContext, WebAPI.CanvasTypes.imageBitmap, ) => unit Description: Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap) --- WebApiFile: src/canvas/ImageData.res Module: WebAPI.ImageData Functions: - let make: ( ~sw: int, ~sh: int, ~settings: WebAPI.DOM.imageDataSettings=?, ) => WebAPI.DOM.imageData Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData) - let makeWithData: ( ~data: Uint8ClampedArray.t, ~sw: int, ~sh: int=?, ~settings: WebAPI.DOM.imageDataSettings=?, ) => WebAPI.DOM.imageData Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData) --- WebApiFile: src/canvas/OffscreenCanvas.res Module: WebAPI.OffscreenCanvas Functions: - let make: ( ~width: int, ~height: int, ) => WebAPI.CanvasTypes.offscreenCanvas Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) - let asEventTarget: WebAPI.CanvasTypes.offscreenCanvas => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.CanvasTypes.offscreenCanvas, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.CanvasTypes.offscreenCanvas, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.CanvasTypes.offscreenCanvas, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.CanvasTypes.offscreenCanvas, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: ( WebAPI.CanvasTypes.offscreenCanvas, WebAPI.DOM.event, ) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let getContext2D: ( WebAPI.CanvasTypes.offscreenCanvas, ~options: JSON.t=?, ) => Null.t< WebAPI.CanvasTypes.offscreenCanvasRenderingContext2D, > Description: Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) - let getContextWebGL: ( WebAPI.CanvasTypes.offscreenCanvas, ~options: WebAPI.CanvasTypes.webGLContextAttributes=?, ) => Null.t Description: Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) - let getContextWebGL2: ( WebAPI.CanvasTypes.offscreenCanvas, ~options: WebAPI.CanvasTypes.webGLContextAttributes=?, ) => Null.t Description: Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) - let getContextBitmapRenderer: ( WebAPI.CanvasTypes.offscreenCanvas, ~options: WebAPI.CanvasTypes.imageBitmapRenderingContextSettings=?, ) => Null.t Description: Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) - let transferToImageBitmap: WebAPI.CanvasTypes.offscreenCanvas => WebAPI.CanvasTypes.imageBitmap Description: Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) - let convertToBlob: ( WebAPI.CanvasTypes.offscreenCanvas, ~options: WebAPI.CanvasTypes.imageEncodeOptions=?, ) => promise Description: Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob) --- WebApiFile: src/canvas/Path2D.res Module: WebAPI.Path2D Types: - type domMatrix2DInit = WebAPI.DOM.domMatrix2DInit Fields: - a: option - b: option - c: option - d: option - e: option - f: option - m11: option - m12: option - m21: option - m22: option - m41: option - m42: option Functions: - let make: unit => WebAPI.CanvasTypes.path2D Description: `make()` Creates a new empty `Path2D`. ```res let path = Path2D.make() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Path2D) - let fromPath2D: WebAPI.CanvasTypes.path2D => WebAPI.CanvasTypes.path2D Description: `fromPath2D(path2D)` Creates a new `Path2D` by copying another `Path2D`. ```res let copiedPath = Path2D.fromPath2D(existingPath) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Path2D) - let fromString: string => WebAPI.CanvasTypes.path2D Description: `fromString(string)` Creates a new `Path2D` from SVG path data text. ```res let path = Path2D.fromString("M0 0 L10 10") ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Path2D) - let closePath: WebAPI.CanvasTypes.path2D => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) - let moveTo: (WebAPI.CanvasTypes.path2D, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) - let lineTo: (WebAPI.CanvasTypes.path2D, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) - let quadraticCurveTo: ( WebAPI.CanvasTypes.path2D, ~cpx: float, ~cpy: float, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) - let bezierCurveTo: ( WebAPI.CanvasTypes.path2D, ~cp1x: float, ~cp1y: float, ~cp2x: float, ~cp2y: float, ~x: float, ~y: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) - let arcTo: ( WebAPI.CanvasTypes.path2D, ~x1: float, ~y1: float, ~x2: float, ~y2: float, ~radius: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) - let rect: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~w: float, ~h: float, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) - let roundRect: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let roundRect2: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let roundRect3: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) - let arc: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~radius: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) - let ellipse: ( WebAPI.CanvasTypes.path2D, ~x: float, ~y: float, ~radiusX: float, ~radiusY: float, ~rotation: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) - let addPath: ( WebAPI.CanvasTypes.path2D, ~path: WebAPI.CanvasTypes.path2D, ~transform: domMatrix2DInit=?, ) => unit Description: Adds to the path the path given by the argument. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Path2D/addPath) --- WebApiFile: src/canvas/VideoColorSpace.res Module: WebAPI.VideoColorSpace Functions: - let make: ( ~init: WebAPI.DOM.videoColorSpaceInit=?, ) => WebAPI.DOM.videoColorSpace Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) - let toJSON: WebAPI.DOM.videoColorSpace => WebAPI.DOM.videoColorSpaceInit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) --- WebApiFile: src/canvas/VideoFrame.res Module: WebAPI.VideoFrame Functions: - let fromHTMLImageElement: ( ~image: WebAPI.HTMLImageElement.t, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromHTMLImageElement(~image: HTMLImageElement.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `HTMLImageElement`. ```res let frame = VideoFrame.fromHTMLImageElement(~image=myImageElement) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromSVGImageElement: ( ~image: WebAPI.SVGElement.svgImageElement, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromSVGImageElement(~image: SVGImageElement.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `SVGImageElement`. ```res let frame = VideoFrame.fromSVGImageElement(~image=mySvgImageElement) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromHTMLVideoElement: ( ~image: WebAPI.HTMLVideoElement.t, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromHTMLVideoElement(~image: HTMLVideoElement.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `HTMLVideoElement`. ```res let frame = VideoFrame.fromHTMLVideoElement(~image=myVideoElement) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromHTMLCanvasElement: ( ~image: WebAPI.HTMLCanvasElement.t, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromHTMLCanvasElement(~image: HTMLCanvasElement.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `HTMLCanvasElement`. ```res let frame = VideoFrame.fromHTMLCanvasElement(~image=myCanvasElement) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromImageBitmap: ( ~image: WebAPI.CanvasTypes.imageBitmap, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromImageBitmap(~image: ImageBitmap.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `ImageBitmap`. ```res let frame = VideoFrame.fromImageBitmap(~image=myImageBitmap) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromOffscreenCanvas: ( ~image: WebAPI.CanvasTypes.offscreenCanvas, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromOffscreenCanvas(~image: OffscreenCanvas.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from an `OffscreenCanvas`. ```res let frame = VideoFrame.fromOffscreenCanvas(~image=myOffscreenCanvas) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromVideoFrame: ( ~image: WebAPI.DOM.videoFrame, ~init: WebAPI.DOM.videoFrameInit=?, ) => WebAPI.DOM.videoFrame Description: `fromVideoFrame(~image: VideoFrame.t, ~init: videoFrameInit=?)` Creates a new `VideoFrame` from another `VideoFrame`. ```res let frame = VideoFrame.fromVideoFrame(~image=otherFrame) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromArrayBuffer: ( ~data: ArrayBuffer.t, ~init: WebAPI.DOM.videoFrameBufferInit, ) => WebAPI.DOM.videoFrame Description: `fromArrayBuffer(~data: ArrayBuffer.t, ~init: videoFrameBufferInit)` Creates a new `VideoFrame` from `ArrayBuffer`-backed pixel data. ```res let frame = VideoFrame.fromArrayBuffer(~data=myArrayBuffer, ~init=myVideoFrameBufferInit) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromTypedArray: ( ~data: TypedArray.t<'t>, ~init: WebAPI.DOM.videoFrameBufferInit, ) => WebAPI.DOM.videoFrame Description: `fromTypedArray(~data: TypedArray.t<'t>, ~init: videoFrameBufferInit)` Creates a new `VideoFrame` from typed-array-backed pixel data. ```res let frame = VideoFrame.fromTypedArray(~data=myTypedArray, ~init=myVideoFrameBufferInit) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let fromDataView: ( ~data: DataView.t, ~init: WebAPI.DOM.videoFrameBufferInit, ) => WebAPI.DOM.videoFrame Description: `fromDataView(~data: DataView.t, ~init: videoFrameBufferInit)` Creates a new `VideoFrame` from `DataView`-backed pixel data. ```res let frame = VideoFrame.fromDataView(~data=myDataView, ~init=myVideoFrameBufferInit) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) - let allocationSize: ( WebAPI.DOM.videoFrame, ~options: WebAPI.DOM.videoFrameCopyToOptions=?, ) => int Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) - let copyTo: ( WebAPI.DOM.videoFrame, ~destination: ArrayBuffer.t, ~options: WebAPI.DOM.videoFrameCopyToOptions=?, ) => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) - let copyTo2: ( WebAPI.DOM.videoFrame, ~destination: WebAPI.ArrayBufferTypedArrayOrDataView.t, ~options: WebAPI.DOM.videoFrameCopyToOptions=?, ) => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) - let copyTo3: ( WebAPI.DOM.videoFrame, ~destination: DataView.t, ~options: WebAPI.DOM.videoFrameCopyToOptions=?, ) => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) - let clone: WebAPI.DOM.videoFrame => WebAPI.DOM.videoFrame Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) - let close: WebAPI.DOM.videoFrame => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) --- WebApiFile: src/core/DOM.res Module: WebAPI.DOM Types: - type document = private {} Description: Any web page loaded in the browser that serves as an entry point into the page's DOM tree. [See Document on MDN](https://developer.mozilla.org/docs/Web/API/Document) Fields: - type domException = {name: string, message: string} Description: An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. [See DOMException on MDN](https://developer.mozilla.org/docs/Web/API/DOMException) Fields: - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMException/name) - message: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMException/message) - type domStringList = {length: int} Description: A type returned by some APIs which contains a list of DOMString (strings). [See DOMStringList on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList) Fields: - length: int - Returns the number of strings in strings. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) - type window = private {} Fields: - type autoFillBase = @as("off") Off | @as("on") On - type documentReadyState = | @as("complete") Complete | @as("interactive") Interactive | @as("loading") Loading - type documentVisibilityState = | @as("hidden") Hidden | @as("visible") Visible - type orientationType = | @as("landscape-primary") LandscapePrimary | @as("landscape-secondary") LandscapeSecondary | @as("portrait-primary") PortraitPrimary | @as("portrait-secondary") PortraitSecondary - type insertPosition = | @as("afterbegin") Afterbegin | @as("afterend") Afterend | @as("beforebegin") Beforebegin | @as("beforeend") Beforeend - type scrollBehavior = | @as("auto") Auto | @as("instant") Instant | @as("smooth") Smooth - type fullscreenNavigationUI = | @as("auto") Auto | @as("hide") Hide | @as("show") Show - type remotePlaybackState = | @as("connected") Connected | @as("connecting") Connecting | @as("disconnected") Disconnected - 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 - type fillMode = | @as("auto") Auto | @as("backwards") Backwards | @as("both") Both | @as("forwards") Forwards | @as("none") None - type playbackDirection = | @as("alternate") Alternate | @as("alternate-reverse") AlternateReverse | @as("normal") Normal | @as("reverse") Reverse - type imageOrientation = | @as("flipY") FlipY | @as("from-image") FromImage | @as("none") None - type premultiplyAlpha = | @as("default") Default | @as("none") None | @as("premultiply") Premultiply - type colorSpaceConversion = | @as("default") Default | @as("none") None - type resizeQuality = | @as("high") High | @as("low") Low | @as("medium") Medium | @as("pixelated") Pixelated - type scrollLogicalPosition = | @as("center") Center | @as("end") End | @as("nearest") Nearest | @as("start") Start - type selectionMode = | @as("end") End | @as("preserve") Preserve | @as("select") Select | @as("start") Start - type videoPixelFormat = | BGRA | BGRX | I420 | I420A | I422 | I444 | NV12 | RGBA | RGBX - type videoColorPrimaries = | @as("bt470bg") Bt470bg | @as("bt709") Bt709 | @as("smpte170m") Smpte170m - type videoTransferCharacteristics = | @as("bt709") Bt709 | @as("iec61966-2-1") Iec6196621 | @as("smpte170m") Smpte170m - type videoMatrixCoefficients = | @as("bt470bg") Bt470bg | @as("bt709") Bt709 | @as("rgb") Rgb | @as("smpte170m") Smpte170m - type alphaOption = @as("discard") Discard | @as("keep") Keep - type predefinedColorSpace = | @as("display-p3") DisplayP3 | @as("srgb") Srgb - type blob = private {size: int, type_: string} Description: A file-like object of immutable, raw data. [See Blob on MDN](https://developer.mozilla.org/docs/Web/API/Blob) Fields: - size: int - type_: string - type file = private { size: int, type_: string, name: string, lastModified: int, webkitRelativePath: string, } Description: Provides information about a file selected by or available to the user. [See File on MDN](https://developer.mozilla.org/docs/Web/API/File) Fields: - size: int - type_: string - name: string - lastModified: int - webkitRelativePath: string - type shareData = { mutable files?: array, mutable title?: string, mutable text?: string, mutable url?: string, } Fields: - files: option> - title: option - text: option - url: option - type userActivation = {hasBeenActive: bool, isActive: bool} Description: [See UserActivation on MDN](https://developer.mozilla.org/docs/Web/API/UserActivation) Fields: - hasBeenActive: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) - isActive: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive) - type navigator Description: 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](https://developer.mozilla.org/docs/Web/API/Navigator) - type domTokenList = {length: int, mutable value: string} Fields: - length: int - Returns the number of tokens. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) - value: string - Returns the associated set as string. Can be set, to change the associated attribute. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) - type fragmentDirective = {} Description: [See FragmentDirective on MDN](https://developer.mozilla.org/docs/Web/API/FragmentDirective) Fields: - type customElementRegistry = private {} Description: [See CustomElementRegistry on MDN](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) Fields: - type barProp = {visible: bool} Description: [See BarProp on MDN](https://developer.mozilla.org/docs/Web/API/BarProp) Fields: - visible: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/BarProp/visible) - type eventTarget = private {} Description: EventTarget is a WebApiDOM interface implemented by objects that can receive events and may have listeners for them. [See EventTarget on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) Fields: - type event = private { type_: WebAPI.EventType.t, target: Null.t, currentTarget: Null.t, eventPhase: int, bubbles: bool, cancelable: bool, defaultPrevented: bool, composed: bool, isTrusted: bool, timeStamp: float, } Description: An event which takes place in the DOM. [See WebApiEvent on MDN](https://developer.mozilla.org/docs/Web/API/Event) Fields: - type_: WebAPI.EventType.t - Returns the type of event, e.g. "click", "hashchange", or "submit". [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/type) - target: Null.t - Returns the object to which event is dispatched (its target). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/target) - currentTarget: Null.t - Returns the object whose event listener's callback is currently being invoked. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) - eventPhase: int - Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) - bubbles: bool - Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/bubbles) - cancelable: bool - Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/cancelable) - defaultPrevented: bool - Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) - composed: bool - Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composed) - isTrusted: bool - Returns true if event was dispatched by the user agent, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) - timeStamp: float - Returns the event's timestamp as the number of milliseconds measured relative to the time origin. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) - type eventInit = { mutable bubbles?: bool, mutable cancelable?: bool, mutable composed?: bool, } Fields: - bubbles: option - cancelable: option - composed: option - type extendableEvent = private { type_: WebAPI.EventType.t, target: Null.t, currentTarget: Null.t, eventPhase: int, bubbles: bool, cancelable: bool, defaultPrevented: bool, composed: bool, isTrusted: bool, timeStamp: float, } Description: The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. [See ExtendableEvent on MDN](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) Fields: - type_: WebAPI.EventType.t - Returns the type of event, e.g. "click", "hashchange", or "submit". [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/type) - target: Null.t - Returns the object to which event is dispatched (its target). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/target) - currentTarget: Null.t - Returns the object whose event listener's callback is currently being invoked. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) - eventPhase: int - Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) - bubbles: bool - Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/bubbles) - cancelable: bool - Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/cancelable) - defaultPrevented: bool - Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) - composed: bool - Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composed) - isTrusted: bool - Returns true if event was dispatched by the user agent, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) - timeStamp: float - Returns the event's timestamp as the number of milliseconds measured relative to the time origin. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) - type abortController = private {signal: abortSignal} Description: A controller object that allows you to abort one or more WebApiDOM requests as and when desired. [See AbortController on MDN](https://developer.mozilla.org/docs/Web/API/AbortController) Fields: - signal: abortSignal - Returns the AbortSignal object associated with this object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController/signal) - type abortSignal = private {aborted: bool, reason: JSON.t} Description: A signal object that allows you to communicate with a WebApiDOM request (such as a WebApiFetch) and abort it if required via an AbortController object. [See AbortSignal on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal) Fields: - aborted: bool - Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) - reason: JSON.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) - type screenOrientation = private { type_: orientationType, angle: int, } Description: [See ScreenOrientation on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) Fields: - type_: orientationType - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) - angle: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) - type screen = { availWidth: int, availHeight: int, width: int, height: int, colorDepth: int, pixelDepth: int, orientation: screenOrientation, } Description: A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. [See Screen on MDN](https://developer.mozilla.org/docs/Web/API/Screen) Fields: - availWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) - availHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) - width: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/width) - height: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/height) - colorDepth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) - pixelDepth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) - orientation: screenOrientation - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Screen/orientation) - @unboxed type vibratePattern = Int(int) | IntArray(array) - type renderingContext = unknown - type offscreenRenderingContext = unknown - type documentTimeline = private {currentTime: Null.t} Description: [See DocumentTimeline on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) Fields: - currentTime: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) - type nodeList<'tNode> = private {length: int} Description: NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). [See NodeList on MDN](https://developer.mozilla.org/docs/Web/API/NodeList) Fields: - length: int - Returns the number of nodes in the collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeList/length) - type domRectReadOnly = private { x: float, y: float, width: float, height: float, top: float, right: float, bottom: float, left: float, } Description: [See DOMRectReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) Fields: - x: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) - y: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) - width: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) - height: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) - top: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) - right: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) - bottom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) - left: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) - type domRect = private { x: float, y: float, width: float, height: float, top: float, right: float, bottom: float, left: float, } Description: [See DOMRect on MDN](https://developer.mozilla.org/docs/Web/API/DOMRect) Fields: - x: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) - y: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) - width: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) - height: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) - top: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) - right: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) - bottom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) - left: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) - type domRectList = private {} Fields: - type validityState = { valueMissing: bool, typeMismatch: bool, patternMismatch: bool, tooLong: bool, tooShort: bool, rangeUnderflow: bool, rangeOverflow: bool, stepMismatch: bool, badInput: bool, customError: bool, valid: bool, } Description: 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](https://developer.mozilla.org/docs/Web/API/ValidityState) Fields: - valueMissing: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) - typeMismatch: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) - patternMismatch: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) - tooLong: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) - tooShort: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) - rangeUnderflow: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) - rangeOverflow: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) - stepMismatch: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) - badInput: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) - customError: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) - valid: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) - type caretPosition = private {} Description: [See CaretPosition on MDN](https://developer.mozilla.org/docs/Web/API/CaretPosition) Fields: - type idleDeadline = private {didTimeout: bool} Description: [See IdleDeadline on MDN](https://developer.mozilla.org/docs/Web/API/IdleDeadline) Fields: - didTimeout: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) - type fileList = private {length: int} Description: An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the 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](https://developer.mozilla.org/docs/Web/API/FileList) Fields: - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileList/length) - type namedNodeMap = private {length: int} Description: 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](https://developer.mozilla.org/docs/Web/API/NamedNodeMap) Fields: - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) - type structuredSerializeOptions = { mutable transfer?: array>, } Fields: - transfer: option>> - type slotAssignmentMode = | @as("manual") Manual | @as("named") Named - type animationPlayState = | @as("finished") Finished | @as("idle") Idle | @as("paused") Paused | @as("running") Running - type animationReplaceState = | @as("active") Active | @as("persisted") Persisted | @as("removed") Removed - type domMatrixReadOnly = private { a: float, b: float, c: float, d: float, e: float, f: float, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float, } Description: [See DOMMatrixReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) Fields: - a: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - b: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - c: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - d: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - e: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - f: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m11: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m12: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m13: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m14: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m21: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m22: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m23: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m24: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m31: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m32: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m33: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m34: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m41: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m42: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m43: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m44: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - type domMatrix = private { a: float, b: float, c: float, d: float, e: float, f: float, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float, } Description: [See DOMMatrix on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrix) Fields: - a: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - b: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - c: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - d: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - e: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - f: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m11: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m12: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m13: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m14: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m21: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m22: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m23: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m24: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m31: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m32: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m33: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m34: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m41: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m42: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m43: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - m44: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) - type videoColorSpace = private { primaries: Null.t, transfer: Null.t, matrix: Null.t, fullRange: Null.t, } Description: [See VideoColorSpace on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) Fields: - primaries: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) - transfer: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) - matrix: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) - fullRange: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) - type videoFrame = private { format: Null.t, codedWidth: int, codedHeight: int, codedRect: Null.t, visibleRect: Null.t, displayWidth: int, displayHeight: int, duration: Null.t, timestamp: int, colorSpace: videoColorSpace, } Description: [See VideoFrame on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) Fields: - format: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) - codedWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) - codedHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) - codedRect: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) - visibleRect: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) - displayWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) - displayHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) - duration: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) - timestamp: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) - colorSpace: videoColorSpace - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) - type imageData = private { width: int, height: int, data: Uint8ClampedArray.t, colorSpace: predefinedColorSpace, } Description: The underlying pixel data of an area of a 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](https://developer.mozilla.org/docs/Web/API/ImageData) Fields: - width: int - Returns the actual dimensions of the data in the ImageData object, in pixels. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/width) - height: int - Returns the actual dimensions of the data in the ImageData object, in pixels. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/height) - data: Uint8ClampedArray.t - Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/data) - colorSpace: predefinedColorSpace - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) - type domPointReadOnly = private { x: float, y: float, z: float, w: float, } Description: [See DOMPointReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) Fields: - x: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) - y: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) - z: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) - w: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) - type domPoint = private { x: float, y: float, z: float, w: float, } Description: [See DOMPoint on MDN](https://developer.mozilla.org/docs/Web/API/DOMPoint) Fields: - x: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) - y: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) - z: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) - w: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) - type canvasContext2DAttributes = { alpha: bool, colorspace?: predefinedColorSpace, desynchronized: bool, willReadFrequently: bool, } Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#contextattributes) Fields: - alpha: bool - colorspace: option - desynchronized: bool - willReadFrequently: bool - type canvasRenderingContext2D Description: The CanvasRenderingContext2D interface, part of the WebApiCanvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. [See CanvasRenderingContext2D on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) - type elementDefinitionOptions = {mutable extends?: string} Fields: - extends: option - type documentTimelineOptions = {mutable originTime?: float} Fields: - originTime: option - type checkVisibilityOptions = { mutable checkOpacity?: bool, mutable checkVisibilityCSS?: bool, mutable contentVisibilityAuto?: bool, mutable opacityProperty?: bool, mutable visibilityProperty?: bool, } Fields: - checkOpacity: option - checkVisibilityCSS: option - contentVisibilityAuto: option - opacityProperty: option - visibilityProperty: option - type scrollOptions = {mutable behavior?: scrollBehavior} Fields: - behavior: option - type scrollToOptions = { mutable behavior?: scrollBehavior, mutable left?: float, mutable top?: float, } Fields: - behavior: option - left: option - top: option - type fullscreenOptions = { mutable navigationUI?: fullscreenNavigationUI, } Fields: - navigationUI: option - type pointerLockOptions = { mutable unadjustedMovement?: bool, } Fields: - unadjustedMovement: option - type idleRequestOptions = {mutable timeout?: int} Fields: - timeout: option - type domRectInit = { mutable x?: float, mutable y?: float, mutable width?: float, mutable height?: float, } Fields: - x: option - y: option - width: option - height: option - 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, } Fields: - valueMissing: option - typeMismatch: option - patternMismatch: option - tooLong: option - tooShort: option - rangeUnderflow: option - rangeOverflow: option - stepMismatch: option - badInput: option - customError: option - type assignedNodesOptions = {mutable flatten?: bool} Fields: - flatten: option - type focusOptions = {mutable preventScroll?: bool} Fields: - preventScroll: option - type imageBitmapOptions = { mutable imageOrientation?: imageOrientation, mutable premultiplyAlpha?: premultiplyAlpha, mutable colorSpaceConversion?: colorSpaceConversion, mutable resizeWidth?: int, mutable resizeHeight?: int, mutable resizeQuality?: resizeQuality, } Fields: - imageOrientation: option - premultiplyAlpha: option - colorSpaceConversion: option - resizeWidth: option - resizeHeight: option - resizeQuality: option - type scrollIntoViewOptions = { mutable behavior?: scrollBehavior, mutable block?: scrollLogicalPosition, mutable inline?: scrollLogicalPosition, } Fields: - behavior: option - block: option - inline: option - type windowPostMessageOptions = { mutable transfer?: array>, mutable targetOrigin?: string, } Fields: - transfer: option>> - targetOrigin: option - 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, } Fields: - a: option - b: option - c: option - d: option - e: option - f: option - m11: option - m12: option - m21: option - m22: option - m41: option - m42: option - 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, } Fields: - a: option - b: option - c: option - d: option - e: option - f: option - m11: option - m12: option - m21: option - m22: option - m41: option - m42: option - m13: option - m14: option - m23: option - m24: option - m31: option - m32: option - m33: option - m34: option - m43: option - m44: option - is2D: option - type videoFrameInit = { mutable duration?: int, mutable timestamp?: int, mutable alpha?: alphaOption, mutable visibleRect?: domRectInit, mutable displayWidth?: int, mutable displayHeight?: int, } Fields: - duration: option - timestamp: option - alpha: option - visibleRect: option - displayWidth: option - displayHeight: option - type videoColorSpaceInit = { mutable primaries?: Nullable.t, mutable transfer?: Nullable.t< videoTransferCharacteristics, >, mutable matrix?: Nullable.t, mutable fullRange?: Nullable.t, } Fields: - primaries: option> - transfer: option> - matrix: option> - fullRange: option> - type planeLayout = { mutable offset: int, mutable stride: int, } Fields: - offset: int - stride: int - type videoFrameBufferInit = { mutable format: videoPixelFormat, mutable codedWidth: int, mutable codedHeight: int, mutable timestamp: int, mutable duration?: int, mutable layout?: array, mutable visibleRect?: domRectInit, mutable displayWidth?: int, mutable displayHeight?: int, mutable colorSpace?: videoColorSpaceInit, } Fields: - format: videoPixelFormat - codedWidth: int - codedHeight: int - timestamp: int - duration: option - layout: option> - visibleRect: option - displayWidth: option - displayHeight: option - colorSpace: option - type imageDataSettings = { mutable colorSpace?: predefinedColorSpace, } Fields: - colorSpace: option - type videoFrameCopyToOptions = { mutable rect?: domRectInit, mutable layout?: array, mutable format?: videoPixelFormat, mutable colorSpace?: predefinedColorSpace, } Fields: - rect: option - layout: option> - format: option - colorSpace: option - type domPointInit = { mutable x?: float, mutable y?: float, mutable z?: float, mutable w?: float, } Fields: - x: option - y: option - z: option - w: option - type xPathNSResolver - type imageBitmapSource - type customElementConstructor - type timeoutId Functions: - let window: window --- WebApiFile: src/core/EventType.res Module: WebAPI.EventType Types: - @unboxed type t = | @as("abort") Abort | @as("activate") Activate | @as("auxclick") Auxclick | @as("beforeinput") Beforeinput | @as("beforetoggle") Beforetoggle | @as("blur") Blur | @as("cancel") Cancel | @as("canplay") Canplay | @as("canplaythrough") Canplaythrough | @as("change") Change | @as("click") Click | @as("close") Close | @as("contextlost") Contextlost | @as("contextmenu") Contextmenu | @as("contextrestored") Contextrestored | @as("copy") Copy | @as("cuechange") Cuechange | @as("cut") Cut | @as("dblclick") Dblclick | @as("DOMContentLoaded") DOMContentLoaded | @as("drag") Drag | @as("dragend") Dragend | @as("dragenter") Dragenter | @as("dragleave") Dragleave | @as("dragover") Dragover | @as("dragstart") Dragstart | @as("drop") Drop | @as("durationchange") Durationchange | @as("emptied") Emptied | @as("ended") Ended | @as("error") Error | @as("focus") Focus | @as("formdata") Formdata | @as("input") Input | @as("install") Install | @as("invalid") Invalid | @as("keydown") Keydown | @as("keypress") Keypress | @as("keyup") Keyup | @as("load") Load | @as("loadeddata") Loadeddata | @as("loadedmetadata") Loadedmetadata | @as("loadstart") Loadstart | @as("message") Message | @as("messageerror") MessageError | @as("mousedown") Mousedown | @as("mouseenter") Mouseenter | @as("mouseleave") Mouseleave | @as("mousemove") Mousemove | @as("mouseout") Mouseout | @as("mouseover") Mouseover | @as("mouseup") Mouseup | @as("notificationclick") NotificationClick | @as("paste") Paste | @as("pause") Pause | @as("play") Play | @as("playing") Playing | @as("progress") Progress | @as("ratechange") Ratechange | @as("reset") Reset | @as("resize") Resize | @as("scroll") Scroll | @as("scrollend") Scrollend | @as("securitypolicyviolation") Securitypolicyviolation | @as("seeked") Seeked | @as("seeking") Seeking | @as("select") Select | @as("slotchange") Slotchange | @as("stalled") Stalled | @as("submit") Submit | @as("suspend") Suspend | @as("timeupdate") Timeupdate | @as("toggle") Toggle | @as("volumechange") Volumechange | @as("waiting") Waiting | @as("webkitanimationend") Webkitanimationend | @as("webkitanimationiteration") Webkitanimationiteration | @as("webkitanimationstart") Webkitanimationstart | @as("webkittransitionend") Webkittransitionend | @as("wheel") Wheel | @as("animationstart") Animationstart | @as("animationiteration") Animationiteration | @as("animationend") Animationend | @as("animationcancel") Animationcancel | @as("transitionrun") Transitionrun | @as("transitionstart") Transitionstart | @as("transitionend") Transitionend | @as("transitioncancel") Transitioncancel | @as("pointerover") Pointerover | @as("pointerenter") Pointerenter | @as("pointerdown") Pointerdown | @as("pointermove") Pointermove | @as("pointerup") Pointerup | @as("pointercancel") Pointercancel | @as("pointerout") Pointerout | @as("pointerleave") Pointerleave | @as("push") Push | @as("gotpointercapture") Gotpointercapture | @as("lostpointercapture") Lostpointercapture | @as("selectstart") Selectstart | @as("selectionchange") Selectionchange | @as("touchstart") Touchstart | @as("touchend") Touchend | @as("touchmove") Touchmove | @as("touchcancel") Touchcancel | Custom(string) --- WebApiFile: src/crypto/Crypto.res Module: WebAPI.Crypto Functions: - let getRandomValues: (WebAPI.WebCryptoTypes.crypto, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) - let randomUUID: WebAPI.WebCryptoTypes.crypto => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) --- WebApiFile: src/crypto/SubtleCrypto.res Module: WebAPI.SubtleCrypto Functions: - let encrypt: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~data: WebAPI.ArrayBufferTypedArrayOrDataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) - let decrypt: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~data: WebAPI.ArrayBufferTypedArrayOrDataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) - let sign: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~data: WebAPI.ArrayBufferTypedArrayOrDataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) - let verify: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~signature: WebAPI.ArrayBufferTypedArrayOrDataView.t, ~data: WebAPI.ArrayBufferTypedArrayOrDataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) - let digest: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~data: WebAPI.ArrayBufferTypedArrayOrDataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) - let generateKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithm, ~extractable: bool, ~keyUsages: array, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) - let generateKey2: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: string, ~extractable: bool, ~keyUsages: array, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) - let deriveKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~baseKey: WebAPI.WebCryptoTypes.cryptoKey, ~derivedKeyType: WebAPI.WebCryptoTypes.algorithmIdentifier, ~extractable: bool, ~keyUsages: array, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) - let deriveBits: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: WebAPI.WebCryptoTypes.algorithm, ~baseKey: WebAPI.WebCryptoTypes.cryptoKey, ~length: int=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) - let deriveBits2: ( WebAPI.WebCryptoTypes.subtleCrypto, ~algorithm: string, ~baseKey: WebAPI.WebCryptoTypes.cryptoKey, ~length: int=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) - let importKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~format: unknown, ~keyData: WebAPI.ArrayBufferTypedArrayOrDataView.t, ~algorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~extractable: bool, ~keyUsages: array, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) - let exportKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~format: WebAPI.WebCryptoTypes.keyFormat, ~key: WebAPI.WebCryptoTypes.cryptoKey, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) - let wrapKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~format: WebAPI.WebCryptoTypes.keyFormat, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~wrappingKey: WebAPI.WebCryptoTypes.cryptoKey, ~wrapAlgorithm: WebAPI.WebCryptoTypes.algorithm, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) - let wrapKey2: ( WebAPI.WebCryptoTypes.subtleCrypto, ~format: WebAPI.WebCryptoTypes.keyFormat, ~key: WebAPI.WebCryptoTypes.cryptoKey, ~wrappingKey: WebAPI.WebCryptoTypes.cryptoKey, ~wrapAlgorithm: string, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) - let unwrapKey: ( WebAPI.WebCryptoTypes.subtleCrypto, ~format: WebAPI.WebCryptoTypes.keyFormat, ~wrappedKey: WebAPI.ArrayBufferTypedArrayOrDataView.t, ~unwrappingKey: WebAPI.WebCryptoTypes.cryptoKey, ~unwrapAlgorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~unwrappedKeyAlgorithm: WebAPI.WebCryptoTypes.algorithmIdentifier, ~extractable: bool, ~keyUsages: array, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) --- WebApiFile: src/css-font-loading/FontFace.res Module: WebAPI.FontFace Functions: - let fromString: ( ~family: string, ~source: string, ~descriptors: WebAPI.CssFontLoadingTypes.fontFaceDescriptors=?, ) => WebAPI.CssFontLoadingTypes.fontFace Description: `fromString(~family: string, ~source: string, ~descriptors: fontFaceDescriptors=?)` Creates a new `FontFace` from CSS source text. ```res let fontFace = FontFace.fromString(~family="Inter", ~source="url(/fonts/inter.woff2)") ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) - let fromDataView: ( ~family: string, ~source: DataView.t, ~descriptors: WebAPI.CssFontLoadingTypes.fontFaceDescriptors=?, ) => WebAPI.CssFontLoadingTypes.fontFace Description: `fromDataView(~family: string, ~source: DataView.t, ~descriptors: fontFaceDescriptors=?)` Creates a new `FontFace` from `DataView`-backed font data. ```res let fontFace = FontFace.fromDataView(~family="Inter", ~source=myDataView) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) - let fromArrayBuffer: ( ~family: string, ~source: ArrayBuffer.t, ~descriptors: WebAPI.CssFontLoadingTypes.fontFaceDescriptors=?, ) => WebAPI.CssFontLoadingTypes.fontFace Description: `fromArrayBuffer(~family: string, ~source: ArrayBuffer.t, ~descriptors: fontFaceDescriptors=?)` Creates a new `FontFace` from `ArrayBuffer`-backed font data. ```res let fontFace = FontFace.fromArrayBuffer(~family="Inter", ~source=myArrayBuffer) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) - let load: WebAPI.CssFontLoadingTypes.fontFace => promise< WebAPI.CssFontLoadingTypes.fontFace, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/load) --- WebApiFile: src/css-font-loading/FontFaceSet.res Module: WebAPI.FontFaceSet Functions: - let asEventTarget: WebAPI.CssFontLoadingTypes.fontFaceSet => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.DOM.event, ) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let add: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.CssFontLoadingTypes.fontFace, ) => WebAPI.CssFontLoadingTypes.fontFaceSet Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add) - let delete: ( WebAPI.CssFontLoadingTypes.fontFaceSet, WebAPI.CssFontLoadingTypes.fontFace, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/delete) - let clear: WebAPI.CssFontLoadingTypes.fontFaceSet => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/clear) - let load: ( WebAPI.CssFontLoadingTypes.fontFaceSet, ~font: string, ~text: string=?, ) => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) - let check: ( WebAPI.CssFontLoadingTypes.fontFaceSet, ~font: string, ~text: string=?, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) --- WebApiFile: src/cssom/CSSRuleList.res Module: WebAPI.CSSRuleList Functions: - let item: ( WebAPI.StyleSheet.cssRuleList, int, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) --- WebApiFile: src/cssom/CSSStyleDeclaration.res Module: WebAPI.CSSStyleDeclaration Types: - type t = { mutable cssText: string, length: int, parentRule: Null.t, 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, } Fields: - cssText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) - parentRule: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) - cx: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/cx) - cy: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/cy) - r: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/r) - rx: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/rx) - ry: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/ry) - x: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/x) - y: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/y) - vectorEffect: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/vector-effect) - d: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/d) - textAnchor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-anchor) - fill: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/fill) - stroke: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke) - markerStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/marker-start) - markerMid: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/marker-mid) - markerEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/marker-end) - marker: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/marker) - paintOrder: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/paint-order) - colorInterpolation: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) - shapeRendering: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) - textRendering: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-rendering) - pointerEvents: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/pointer-events) - stopColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stop-color) - stopOpacity: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) - webkitTextFillColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) - webkitTextStrokeColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) - webkitTextStrokeWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) - webkitTextStroke: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) - touchAction: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/touch-action) - positionArea: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/position-area) - top: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/top) - left: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/left) - right: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/right) - bottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/bottom) - justifySelf: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/justify-self) - alignSelf: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/align-self) - justifyItems: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/justify-items) - alignItems: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/align-items) - width: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/width) - height: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/height) - minWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/min-width) - minHeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/min-height) - maxWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/max-width) - maxHeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/max-height) - marginTop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-top) - marginLeft: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-left) - marginRight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-right) - marginBottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) - animationDuration: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-duration) - animationComposition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-composition) - animationName: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-name) - animationTimingFunction: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) - animationIterationCount: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) - animationDirection: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-direction) - animationPlayState: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) - animationDelay: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-delay) - animationFillMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) - animation: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/animation) - all: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/all) - containerType: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/container-type) - containerName: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/container-name) - container: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/container) - contain: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain) - contentVisibility: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/content-visibility) - fontFamily: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-family) - fontWeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-weight) - fontStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-style) - fontSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-size) - fontSizeAdjust: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) - font: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font) - fontSynthesisWeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) - fontSynthesisStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) - fontSynthesisSmallCaps: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) - fontSynthesis: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) - fontKerning: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-kerning) - fontVariantLigatures: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) - fontVariantPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) - fontVariantCaps: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) - fontVariantNumeric: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) - fontVariantAlternates: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) - fontVariantEastAsian: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) - fontVariant: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variant) - fontFeatureSettings: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) - fontOpticalSizing: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) - fontVariationSettings: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) - fontPalette: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-palette) - fontStretch: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/font-stretch) - objectFit: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/object-fit) - clipPath: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/clip-path) - clipRule: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/clip-rule) - maskImage: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-image) - maskMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-mode) - maskRepeat: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) - maskPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-position) - maskClip: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-clip) - maskOrigin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-origin) - maskSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-size) - maskComposite: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-composite) - mask: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask) - maskType: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mask-type) - transitionBehavior: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) - transitionProperty: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition-property) - transitionDuration: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition-duration) - transitionTimingFunction: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) - transitionDelay: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition-delay) - transition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transition) - viewTransitionName: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) - zoom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/zoom) - filter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/filter) - colorInterpolationFilters: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) - display: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/display) - textTransform: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-transform) - mathStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/math-style) - mathDepth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/math-depth) - zIndex: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/z-index) - pageBreakBefore: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/page-break-before) - pageBreakAfter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/page-break-after) - pageBreakInside: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) - mixBlendMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) - isolation: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/isolation) - backgroundBlendMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) - alignContent: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/align-content) - justifyContent: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/justify-content) - placeContent: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/place-content) - placeSelf: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/place-self) - placeItems: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/place-items) - rowGap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/row-gap) - columnGap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-gap) - gap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/gap) - backgroundRepeat: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-repeat) - backgroundPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-position) - backgroundPositionX: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-position-x) - backgroundPositionY: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-position-y) - backgroundClip: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-clip) - backgroundColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-color) - backgroundImage: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-image) - backgroundAttachment: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-attachment) - backgroundOrigin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-origin) - backgroundSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background-size) - background: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/background) - borderStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-style) - borderWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-width) - border: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border) - borderImageSource: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image-source) - borderImageSlice: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) - borderImageWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image-width) - borderImageOutset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) - borderImageRepeat: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) - borderImage: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-image) - borderTopColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top-color) - borderRightColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-right-color) - borderBottomColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) - borderLeftColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-left-color) - borderBlockStartColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) - borderBlockEndColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) - borderInlineStartColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) - borderInlineEndColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) - borderColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-color) - borderBlockColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-color) - borderInlineColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) - borderTopStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top-style) - borderRightStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-right-style) - borderBottomStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) - borderLeftStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-left-style) - borderBlockStartStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) - borderBlockEndStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) - borderInlineStartStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) - borderInlineEndStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) - borderBlockStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-style) - borderInlineStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) - borderTopWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top-width) - borderRightWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-right-width) - borderBottomWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) - borderLeftWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-left-width) - borderBlockStartWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) - borderBlockEndWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) - borderInlineStartWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) - borderInlineEndWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) - borderBlockWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-width) - borderInlineWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) - borderTop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top) - borderRight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-right) - borderBottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom) - borderLeft: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-left) - borderBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-start) - borderBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block-end) - borderInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) - borderInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) - borderBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-block) - borderInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-inline) - borderTopLeftRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) - borderTopRightRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) - borderBottomRightRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) - borderBottomLeftRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) - borderStartStartRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) - borderStartEndRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) - borderEndStartRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) - borderEndEndRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) - borderRadius: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-radius) - boxShadow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/box-shadow) - margin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin) - paddingTop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-top) - paddingRight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-right) - paddingBottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) - paddingLeft: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-left) - padding: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding) - breakBefore: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/break-before) - breakAfter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/break-after) - breakInside: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/break-inside) - orphans: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/orphans) - widows: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/widows) - boxDecorationBreak: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) - colorScheme: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/color-scheme) - forcedColorAdjust: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) - printColorAdjust: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) - color: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/color) - opacity: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/opacity) - content: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/content) - quotes: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/quotes) - order: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/order) - visibility: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/visibility) - flexDirection: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-direction) - flexWrap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) - flexFlow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-flow) - flex: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex) - flexGrow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-grow) - flexShrink: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) - flexBasis: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/flex-basis) - position: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/position) - float: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/float) - gridTemplateColumns: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) - gridTemplateRows: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) - gridAutoFlow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) - gridTemplateAreas: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) - gridTemplate: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-template) - gridAutoColumns: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) - gridAutoRows: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) - grid: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid) - gridRowStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) - gridColumnStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) - gridRowEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) - gridColumnEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) - gridRow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-row) - gridColumn: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-column) - gridArea: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/grid-area) - objectPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/object-position) - imageRendering: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/image-rendering) - dominantBaseline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) - verticalAlign: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/vertical-align) - lineHeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/line-height) - listStyleImage: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/list-style-image) - listStyleType: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/list-style-type) - listStylePosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/list-style-position) - listStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/list-style) - counterReset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/counter-reset) - counterIncrement: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/counter-increment) - counterSet: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/counter-set) - blockSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/block-size) - inlineSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inline-size) - minBlockSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/min-block-size) - minInlineSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) - maxBlockSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/max-block-size) - maxInlineSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) - marginBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) - marginBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) - marginInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) - marginInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) - marginBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-block) - marginInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/margin-inline) - paddingBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) - paddingBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) - paddingInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) - paddingInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) - paddingBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-block) - paddingInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/padding-inline) - columnSpan: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-span) - columnWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-width) - columnCount: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-count) - columns: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/columns) - columnRuleColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) - columnRuleStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) - columnRuleWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) - columnRule: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-rule) - columnFill: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/column-fill) - overflowClipMargin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) - textOverflow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-overflow) - overflowX: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow-x) - overflowY: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow-y) - overflow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow) - scrollBehavior: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) - scrollbarGutter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) - overscrollBehavior: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) - overscrollBehaviorX: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) - overscrollBehaviorY: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) - overscrollBehaviorInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) - overscrollBehaviorBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) - clear: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/clear) - page: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/page) - insetBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) - insetInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) - insetBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) - insetInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) - insetBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-block) - insetInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset-inline) - inset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/inset) - rubyPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/ruby-position) - rubyAlign: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/ruby-align) - overflowAnchor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) - scrollSnapType: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) - scrollPadding: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) - scrollMargin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) - scrollSnapAlign: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) - scrollSnapStop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) - scrollPaddingTop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) - scrollPaddingRight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) - scrollPaddingBottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) - scrollPaddingLeft: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) - scrollPaddingInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) - scrollPaddingBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) - scrollPaddingInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) - scrollPaddingBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) - scrollPaddingBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) - scrollPaddingInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) - scrollMarginTop: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) - scrollMarginRight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) - scrollMarginBottom: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) - scrollMarginLeft: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) - scrollMarginBlockStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) - scrollMarginInlineStart: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) - scrollMarginBlockEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) - scrollMarginInlineEnd: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) - scrollMarginBlock: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) - scrollMarginInline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) - scrollbarColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) - scrollbarWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) - shapeOutside: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/shape-outside) - shapeImageThreshold: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) - shapeMargin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/shape-margin) - aspectRatio: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) - containIntrinsicWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) - containIntrinsicHeight: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) - containIntrinsicBlockSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) - containIntrinsicInlineSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) - containIntrinsicSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) - boxSizing: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/box-sizing) - tableLayout: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/table-layout) - borderCollapse: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-collapse) - borderSpacing: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/border-spacing) - captionSide: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/caption-side) - emptyCells: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/empty-cells) - whiteSpace: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/white-space) - whiteSpaceCollapse: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) - tabSize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/tab-size) - textWrapMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) - textWrapStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) - textWrap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-wrap) - wordBreak: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/word-break) - lineBreak: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/line-break) - hyphens: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/hyphens) - hyphenateCharacter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) - overflowWrap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) - textAlign: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-align) - textAlignLast: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-align-last) - wordSpacing: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/word-spacing) - letterSpacing: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) - textIndent: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-indent) - textDecorationLine: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) - textDecorationStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) - textDecorationColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) - textDecorationThickness: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) - textDecoration: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration) - textUnderlinePosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) - textUnderlineOffset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) - textDecorationSkipInk: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) - textEmphasisStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) - textEmphasisColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) - textEmphasis: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) - textEmphasisPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) - textShadow: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-shadow) - translate: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/translate) - rotate: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/rotate) - scale: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/scale) - transformStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transform-style) - perspective: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/perspective) - perspectiveOrigin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) - backfaceVisibility: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) - transform: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transform) - transformOrigin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transform-origin) - transformBox: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/transform-box) - outline: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/outline) - outlineWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/outline-width) - outlineStyle: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/outline-style) - outlineColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/outline-color) - outlineOffset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/outline-offset) - resize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/resize) - cursor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/cursor) - caretColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/caret-color) - userSelect: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/user-select) - accentColor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/accent-color) - appearance: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/appearance) - willChange: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/will-change) - direction: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/direction) - unicodeBidi: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) - writingMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/writing-mode) - textOrientation: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-orientation) - textCombineUpright: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) - fillRule: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/fill-rule) - fillOpacity: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) - strokeWidth: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-width) - strokeLinecap: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) - strokeLinejoin: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) - strokeMiterlimit: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) - strokeDasharray: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) - strokeDashoffset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) - strokeOpacity: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) - backdropFilter: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) - offsetPath: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset-path) - offsetDistance: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset-distance) - offsetPosition: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset-position) - offsetAnchor: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) - offsetRotate: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) - offset: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/CSS/offset) - cssFloat: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) Functions: - let item: (t, int) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) - let getPropertyValue: (t, string) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) - let getPropertyPriority: (t, string) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) - let setProperty: ( t, ~property: string, ~value: string, ~priority: string=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) - let removeProperty: (t, string) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) --- WebApiFile: src/cssom/CSSStyleValue.res Module: WebAPI.CSSStyleValue Types: - type t = private {} Description: [See CSSStyleValue on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) Fields: Functions: - let parse: (~property: string, ~cssText: string) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) - let parseAll: (~property: string, ~cssText: string) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) --- WebApiFile: src/cssom/MediaList.res Module: WebAPI.MediaList Types: - type t = {mutable mediaText: string, length: int} Fields: - mediaText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/length) Functions: - let item: (t, int) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/item) - let appendMedium: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) - let deleteMedium: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) --- WebApiFile: src/cssom/MediaQueryList.res Module: WebAPI.MediaQueryList Types: - type t = private {media: string, matches: bool} Description: 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](https://developer.mozilla.org/docs/Web/API/MediaQueryList) Fields: - media: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) - matches: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) --- WebApiFile: src/cssom/StylePropertyMap.res Module: WebAPI.StylePropertyMap Types: - type t = private {size: int} Description: [See StylePropertyMap on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) Fields: - size: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) Functions: - let asStylePropertyMapReadOnly: t => WebAPI.StylePropertyMapReadOnly.t - let getAll: (t, string) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) - let has: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) - let set: ( t, ~property: string, ~values: WebAPI.CSSStyleValue.t, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) - let set2: (t, ~property: string, ~values: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) - let append: ( t, ~property: string, ~values: WebAPI.CSSStyleValue.t, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) - let append2: (t, ~property: string, ~values: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) - let delete: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) - let clear: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) --- WebApiFile: src/cssom/StylePropertyMapReadOnly.res Module: WebAPI.StylePropertyMapReadOnly Types: - type t = private {size: int} Description: [See StylePropertyMapReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) Fields: - size: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) Functions: - let getAll: (t, string) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) - let has: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) --- WebApiFile: src/cssom/StyleSheet.res Module: WebAPI.StyleSheet Types: - type t = { type_: string, href: Null.t, ownerNode: Null.t, parentStyleSheet: Null.t, title: Null.t, media: WebAPI.MediaList.t, mutable disabled: bool, } Description: A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. [See StyleSheet on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet) Fields: - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) - href: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) - ownerNode: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) - parentStyleSheet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) - title: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) - media: WebAPI.MediaList.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) - disabled: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) - type cssStyleSheet = { type_: string, href: Null.t, ownerNode: Null.t, parentStyleSheet: Null.t, title: Null.t, media: WebAPI.MediaList.t, mutable disabled: bool, ownerRule: Null.t, cssRules: cssRuleList, } Description: A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. [See CSSStyleSheet on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) TODO: mark as private once mutating fields of private records is allowed Fields: - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) - href: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) - ownerNode: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) - parentStyleSheet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) - title: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) - media: WebAPI.MediaList.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) - disabled: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) - ownerRule: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) - cssRules: cssRuleList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) - type cssRule = { mutable cssText: string, parentRule: Null.t, parentStyleSheet: Null.t, } Description: A single CSS rule. There are several types of rules, listed in the Type constants section below. [See CSSRule on MDN](https://developer.mozilla.org/docs/Web/API/CSSRule) Fields: - cssText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) - parentRule: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) - parentStyleSheet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) - type cssRuleList = private {length: int} Description: A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. [See CSSRuleList on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList) Fields: - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) - type init = { mutable baseURL?: string, mutable media?: unknown, mutable disabled?: bool, } Fields: - baseURL: option - media: option - disabled: option Functions: - let make: (~options: init=?) => cssStyleSheet Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) - let asStyleSheet: cssStyleSheet => t - let insertRule: (cssStyleSheet, ~rule: string, ~index: int=?) => int Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) - let deleteRule: (cssStyleSheet, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) - let replace: (cssStyleSheet, string) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) - let replaceSync: (cssStyleSheet, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) --- WebApiFile: src/cssom/StyleSheetList.res Module: WebAPI.StyleSheetList Types: - type t = private {length: int} Description: A list of StyleSheet. [See StyleSheetList on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList) Fields: - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) Functions: - let item: (t, int) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) --- WebApiFile: src/device/GamepadHapticActuator.res Module: WebAPI.GamepadHapticActuator Functions: - let playEffect: ( WebAPI.GamepadTypes.gamepadHapticActuator, ~type_: WebAPI.GamepadTypes.gamepadHapticEffectType, ~params: WebAPI.GamepadTypes.gamepadEffectParameters=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) - let reset: WebAPI.GamepadTypes.gamepadHapticActuator => promise< WebAPI.GamepadTypes.gamepadHapticsResult, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) --- WebApiFile: src/device/Geolocation.res Module: WebAPI.Geolocation Functions: - let getCurrentPosition: ( WebAPI.GeolocationTypes.geolocation, ~successCallback: WebAPI.GeolocationTypes.positionCallback, ~errorCallback: WebAPI.GeolocationTypes.positionErrorCallback=?, ~options: WebAPI.GeolocationTypes.positionOptions=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) - let watchPosition: ( WebAPI.GeolocationTypes.geolocation, ~successCallback: WebAPI.GeolocationTypes.positionCallback, ~errorCallback: WebAPI.GeolocationTypes.positionErrorCallback=?, ~options: WebAPI.GeolocationTypes.positionOptions=?, ) => int Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) - let clearWatch: (WebAPI.GeolocationTypes.geolocation, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) --- WebApiFile: src/device/GeolocationCoordinates.res Module: WebAPI.GeolocationCoordinates Functions: - let toJSON: WebAPI.GeolocationTypes.geolocationCoordinates => Dict.t< string, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) --- WebApiFile: src/device/GeolocationPosition.res Module: WebAPI.GeolocationPosition Functions: - let toJSON: WebAPI.GeolocationTypes.geolocationPosition => Dict.t< string, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) --- WebApiFile: src/device/LockManager.res Module: WebAPI.LockManager Functions: - let request: ( WebAPI.WebLocksTypes.lockManager, ~name: string, ~callback: WebAPI.WebLocksTypes.lockGrantedCallback, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/LockManager/request) - let request2: ( WebAPI.WebLocksTypes.lockManager, ~name: string, ~options: WebAPI.WebLocksTypes.lockOptions, ~callback: WebAPI.WebLocksTypes.lockGrantedCallback, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/LockManager/request) - let query: WebAPI.WebLocksTypes.lockManager => promise< WebAPI.WebLocksTypes.lockManagerSnapshot, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/LockManager/query) --- WebApiFile: src/device/ScreenOrientation.res Module: WebAPI.ScreenOrientation Functions: - let asEventTarget: WebAPI.DOM.screenOrientation => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.DOM.screenOrientation, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.DOM.screenOrientation, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.DOM.screenOrientation, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.DOM.screenOrientation, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (WebAPI.DOM.screenOrientation, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let unlock: WebAPI.DOM.screenOrientation => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) --- WebApiFile: src/device/WakeLock.res Module: WebAPI.WakeLock Functions: - let request: ( WebAPI.ScreenWakeLockTypes.wakeLock, ~type_: WebAPI.ScreenWakeLockTypes.wakeLockType=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLock/request) --- WebApiFile: src/device/WakeLockSentinel.res Module: WebAPI.WakeLockSentinel Functions: - let asEventTarget: WebAPI.ScreenWakeLockTypes.wakeLockSentinel => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.ScreenWakeLockTypes.wakeLockSentinel, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.ScreenWakeLockTypes.wakeLockSentinel, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.ScreenWakeLockTypes.wakeLockSentinel, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.ScreenWakeLockTypes.wakeLockSentinel, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: ( WebAPI.ScreenWakeLockTypes.wakeLockSentinel, WebAPI.DOM.event, ) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let release: WebAPI.ScreenWakeLockTypes.wakeLockSentinel => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) --- WebApiFile: src/device/WebMIDI.res Module: WebAPI.WebMIDI Types: - type t = WebAPI.WebMidiTypes.midiAccess = { inputs: WebAPI.WebMidiTypes.midiInputMap, outputs: WebAPI.WebMidiTypes.midiOutputMap, sysexEnabled: bool, } Fields: - inputs: WebAPI.WebMidiTypes.midiInputMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) - outputs: WebAPI.WebMidiTypes.midiOutputMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) - sysexEnabled: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) - type midiOptions = WebAPI.WebMidiTypes.midiOptions = { mutable sysex?: bool, mutable software?: bool, } Fields: - sysex: option - software: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) --- WebApiFile: src/dom-nodes/AbstractRange.res Module: WebAPI.AbstractRange Types: - type t = { startContainer: WebAPI.DOMTree.node, startOffset: int, endContainer: WebAPI.DOMTree.node, endOffset: int, collapsed: bool, } Description: [See AbstractRange on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange) Fields: - startContainer: WebAPI.DOMTree.node - Returns range's start node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) - startOffset: int - Returns range's start offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) - endContainer: WebAPI.DOMTree.node - Returns range's end node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) - endOffset: int - Returns range's end offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) - collapsed: bool - Returns true if range is collapsed, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) --- WebApiFile: src/dom-nodes/Attr.res Module: WebAPI.Attr Types: - type t = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, namespaceURI: Null.t, prefix: Null.t, localName: string, name: string, mutable value: string, ownerElement: Null.t, } Description: A WebApiDOM element's attribute as an object. In most WebApiDOM 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](https://developer.mozilla.org/docs/Web/API/Attr) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - namespaceURI: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) - prefix: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/prefix) - localName: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/localName) - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/name) - value: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/value) - ownerElement: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) --- WebApiFile: src/dom-nodes/CDATASection.res Module: WebAPI.CDATASection Types: - type t = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable data: string, length: int, previousElementSibling: Null.t, nextElementSibling: Null.t, wholeText: string, assignedSlot: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/CDATASection) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - data: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/data) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/length) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - wholeText: string - Returns the combined data of all direct Text node siblings. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Text/wholeText) - assignedSlot: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) --- WebApiFile: src/dom-nodes/CaretPosition.res Module: WebAPI.CaretPosition Functions: - let getClientRect: WebAPI.DOM.caretPosition => Null.t --- WebApiFile: src/dom-nodes/CharacterData.res Module: WebAPI.CharacterData Types: - type t = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable data: string, length: int, previousElementSibling: Null.t, nextElementSibling: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/CharacterData) TODO: mark as private once mutating fields of private records is allowed Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - data: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/data) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/length) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asCharacterData: t => t - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let appendData: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let deleteData: (t, ~offset: int, ~count: int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) - let insertData: (t, ~offset: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let replaceData: (t, ~offset: int, ~count: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let substringData: (t, ~offset: int, ~count: int) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) --- WebApiFile: src/dom-nodes/Comment.res Module: WebAPI.Comment Types: - type t = private { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable data: string, length: int, previousElementSibling: Null.t, nextElementSibling: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/Comment) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - data: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/data) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/length) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asCharacterData: t => \"CharacterData-WebAPI".t - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let appendData: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let deleteData: (t, ~offset: int, ~count: int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) - let insertData: (t, ~offset: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let replaceData: (t, ~offset: int, ~count: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let substringData: (t, ~offset: int, ~count: int) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) - let make: (~data: string=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Comment) --- WebApiFile: src/dom-nodes/DOMImplementation.res Module: WebAPI.DOMImplementation Types: - type t = private {} Description: 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](https://developer.mozilla.org/docs/Web/API/DOMImplementation) Fields: - type documentType = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, name: string, publicId: string, systemId: string, } Description: A Node containing a doctype. [See DocumentType on MDN](https://developer.mozilla.org/docs/Web/API/DocumentType) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentType/name) - publicId: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) - systemId: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) - type xmlDocument = {} Description: 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](https://developer.mozilla.org/docs/Web/API/XMLDocument) Fields: Functions: - let createDocumentType: ( t, ~qualifiedName: string, ~publicId: string, ~systemId: string, ) => documentType Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) - let createDocument: ( t, ~namespace: string, ~qualifiedName: string, ~doctype: documentType=?, ) => xmlDocument Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) - let createHTMLDocument: (t, ~title: string=?) => WebAPI.DOM.document Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) --- WebApiFile: src/dom-nodes/DOMTree.res Module: WebAPI.DOMTree Types: - type shadowRootMode = | @as("closed") Closed | @as("open") Open - type slotAssignmentMode = | @as("manual") Manual | @as("named") Named - type customStateSet = {} Fields: - type node = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, } Description: Node is an interface from which a number of WebApiDOM 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](https://developer.mozilla.org/docs/Web/API/Node) TODO: mark as private once mutating fields of private records is allowed Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - type element = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, children: WebAPI.HTMLCollection.t, firstElementChild: Null.t, lastElementChild: Null.t, childElementCount: int, previousElementSibling: Null.t, nextElementSibling: Null.t, assignedSlot: Null.t, mutable ariaAtomic: Null.t, mutable ariaAutoComplete: Null.t, mutable ariaBrailleLabel: Null.t, mutable ariaBrailleRoleDescription: Null.t, mutable ariaBusy: Null.t, mutable ariaChecked: Null.t, mutable ariaColCount: Null.t, mutable ariaColIndex: Null.t, mutable ariaColIndexText: Null.t, mutable ariaColSpan: Null.t, mutable ariaCurrent: Null.t, mutable ariaDescription: Null.t, mutable ariaDisabled: Null.t, mutable ariaExpanded: Null.t, mutable ariaHasPopup: Null.t, mutable ariaHidden: Null.t, mutable ariaKeyShortcuts: Null.t, mutable ariaLabel: Null.t, mutable ariaLevel: Null.t, mutable ariaLive: Null.t, mutable ariaModal: Null.t, mutable ariaMultiLine: Null.t, mutable ariaMultiSelectable: Null.t, mutable ariaOrientation: Null.t, mutable ariaPlaceholder: Null.t, mutable ariaPosInSet: Null.t, mutable ariaPressed: Null.t, mutable ariaReadOnly: Null.t, mutable ariaRequired: Null.t, mutable ariaRoleDescription: Null.t, mutable ariaRowCount: Null.t, mutable ariaRowIndex: Null.t, mutable ariaRowIndexText: Null.t, mutable ariaRowSpan: Null.t, mutable ariaSelected: Null.t, mutable ariaSetSize: Null.t, mutable ariaSort: Null.t, mutable ariaValueMax: Null.t, mutable ariaValueMin: Null.t, mutable ariaValueNow: Null.t, mutable ariaValueText: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/Element) TODO: mark as private once mutating fields of private records is allowed Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - children: WebAPI.HTMLCollection.t - Returns the child elements. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children) - firstElementChild: Null.t - Returns the first child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) - lastElementChild: Null.t - Returns the last child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) - childElementCount: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - assignedSlot: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) - ariaAtomic: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) - ariaAutoComplete: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) - ariaBrailleLabel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) - ariaBrailleRoleDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) - ariaBusy: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) - ariaChecked: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) - ariaColCount: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) - ariaColIndex: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) - ariaColIndexText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) - ariaColSpan: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) - ariaCurrent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) - ariaDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) - ariaDisabled: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) - ariaExpanded: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) - ariaHasPopup: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) - ariaHidden: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) - ariaKeyShortcuts: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) - ariaLabel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) - ariaLevel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) - ariaLive: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) - ariaModal: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) - ariaMultiLine: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) - ariaMultiSelectable: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) - ariaOrientation: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) - ariaPlaceholder: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) - ariaPosInSet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) - ariaPressed: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) - ariaReadOnly: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) - ariaRequired: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) - ariaRoleDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) - ariaRowCount: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) - ariaRowIndex: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) - ariaRowIndexText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) - ariaRowSpan: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) - ariaSelected: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) - ariaSetSize: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) - ariaSort: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) - ariaValueMax: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) - ariaValueMin: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) - ariaValueNow: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) - ariaValueText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) - type documentFragment = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, children: WebAPI.HTMLCollection.t, firstElementChild: Null.t, lastElementChild: Null.t, childElementCount: int, } Description: 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](https://developer.mozilla.org/docs/Web/API/DocumentFragment) TODO: mark as private once mutating fields of private records is allowed Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - children: WebAPI.HTMLCollection.t - Returns the child elements. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children) - firstElementChild: Null.t - Returns the first child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) - lastElementChild: Null.t - Returns the last child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) - childElementCount: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) - type shadowRoot = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mode: shadowRootMode, delegatesFocus: bool, slotAssignment: slotAssignmentMode, clonable: bool, serializable: bool, host: element, mutable innerHTML: string, styleSheets: WebAPI.StyleSheetList.t, mutable adoptedStyleSheets: array< WebAPI.StyleSheet.cssStyleSheet, >, fullscreenElement: Null.t, activeElement: Null.t, pictureInPictureElement: Null.t, pointerLockElement: Null.t, } Description: [See ShadowRoot on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot) TODO: mark as private once mutating fields of private records is allowed Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - mode: shadowRootMode - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) - delegatesFocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) - slotAssignment: slotAssignmentMode - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) - clonable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) - serializable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) - host: element - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) - styleSheets: WebAPI.StyleSheetList.t - 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](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) - adoptedStyleSheets: array - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) - fullscreenElement: Null.t - Returns document's fullscreen element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) - activeElement: Null.t - 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](https://developer.mozilla.org/docs/Web/API/Document/activeElement) - pictureInPictureElement: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) - pointerLockElement: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) - type htmlElement = { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, } Description: Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. [See HTMLElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement) TODO: mark as private once mutating fields of private records is allowed Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - type htmlFormElement = { mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable acceptCharset: string, mutable action: string, mutable autocomplete: WebAPI.DOM.autoFillBase, mutable enctype: string, mutable encoding: string, mutable method: string, mutable name: string, mutable target: string, elements: htmlFormControlsCollection, length: int, } Description: A
element in the WebApiDOM; 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](https://developer.mozilla.org/docs/Web/API/HTMLFormElement) TODO: mark as private once mutating fields of private records is allowed Fields: - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - acceptCharset: string - Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset) - action: string - Sets or retrieves the WebApiURL to which the form content is sent for processing. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action) - autocomplete: WebAPI.DOM.autoFillBase - Specifies whether autocomplete is applied to an editable text field. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) - enctype: string - Sets or retrieves the encoding type for the form. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype) - encoding: string - Sets or retrieves the MIME encoding for the form. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding) - method: string - Sets or retrieves how to send the form data to the server. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method) - name: string - Sets or retrieves the name of the object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name) - target: string - Sets or retrieves the window or frame at which to target content. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target) - elements: htmlFormControlsCollection - Retrieves a collection, in source order, of all controls in a given form. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements) - length: int - Sets or retrieves the number of objects in a collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length) - type htmlFormControlsCollection = {length: int} Fields: - length: int - type htmlSlotElement = { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable name: string, } Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) - type elementInternals = { shadowRoot: Null.t, form: Null.t, willValidate: bool, validity: WebAPI.DOM.validityState, validationMessage: string, labels: WebAPI.DOM.nodeList, states: customStateSet, mutable ariaAtomic: Null.t, mutable ariaAutoComplete: Null.t, mutable ariaBrailleLabel: Null.t, mutable ariaBrailleRoleDescription: Null.t, mutable ariaBusy: Null.t, mutable ariaChecked: Null.t, mutable ariaColCount: Null.t, mutable ariaColIndex: Null.t, mutable ariaColIndexText: Null.t, mutable ariaColSpan: Null.t, mutable ariaCurrent: Null.t, mutable ariaDescription: Null.t, mutable ariaDisabled: Null.t, mutable ariaExpanded: Null.t, mutable ariaHasPopup: Null.t, mutable ariaHidden: Null.t, mutable ariaKeyShortcuts: Null.t, mutable ariaLabel: Null.t, mutable ariaLevel: Null.t, mutable ariaLive: Null.t, mutable ariaModal: Null.t, mutable ariaMultiLine: Null.t, mutable ariaMultiSelectable: Null.t, mutable ariaOrientation: Null.t, mutable ariaPlaceholder: Null.t, mutable ariaPosInSet: Null.t, mutable ariaPressed: Null.t, mutable ariaReadOnly: Null.t, mutable ariaRequired: Null.t, mutable ariaRoleDescription: Null.t, mutable ariaRowCount: Null.t, mutable ariaRowIndex: Null.t, mutable ariaRowIndexText: Null.t, mutable ariaRowSpan: Null.t, mutable ariaSelected: Null.t, mutable ariaSetSize: Null.t, mutable ariaSort: Null.t, mutable ariaValueMax: Null.t, mutable ariaValueMin: Null.t, mutable ariaValueNow: Null.t, mutable ariaValueText: Null.t, } Fields: - shadowRoot: Null.t - form: Null.t - willValidate: bool - validity: WebAPI.DOM.validityState - validationMessage: string - labels: WebAPI.DOM.nodeList - states: customStateSet - ariaAtomic: Null.t - ariaAutoComplete: Null.t - ariaBrailleLabel: Null.t - ariaBrailleRoleDescription: Null.t - ariaBusy: Null.t - ariaChecked: Null.t - ariaColCount: Null.t - ariaColIndex: Null.t - ariaColIndexText: Null.t - ariaColSpan: Null.t - ariaCurrent: Null.t - ariaDescription: Null.t - ariaDisabled: Null.t - ariaExpanded: Null.t - ariaHasPopup: Null.t - ariaHidden: Null.t - ariaKeyShortcuts: Null.t - ariaLabel: Null.t - ariaLevel: Null.t - ariaLive: Null.t - ariaModal: Null.t - ariaMultiLine: Null.t - ariaMultiSelectable: Null.t - ariaOrientation: Null.t - ariaPlaceholder: Null.t - ariaPosInSet: Null.t - ariaPressed: Null.t - ariaReadOnly: Null.t - ariaRequired: Null.t - ariaRoleDescription: Null.t - ariaRowCount: Null.t - ariaRowIndex: Null.t - ariaRowIndexText: Null.t - ariaRowSpan: Null.t - ariaSelected: Null.t - ariaSetSize: Null.t - ariaSort: Null.t - ariaValueMax: Null.t - ariaValueMin: Null.t - ariaValueNow: Null.t - ariaValueText: Null.t --- WebApiFile: src/dom-nodes/DocumentFragment.res Module: WebAPI.DocumentFragment Types: - type t = WebAPI.DOMTree.documentFragment = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, children: WebAPI.HTMLCollection.t, firstElementChild: Null.t, lastElementChild: Null.t, childElementCount: int, } Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - children: WebAPI.HTMLCollection.t - Returns the child elements. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children) - firstElementChild: Null.t - Returns the first child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) - lastElementChild: Null.t - Returns the last child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) - childElementCount: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let make: unit => WebAPI.DOMTree.documentFragment Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragmentFragment) - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asDocumentFragment: t => WebAPI.DOMTree.documentFragment - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/append) - let getElementById: (t, string) => Null.t Description: Returns the first element within node's descendants whose ID is elementId. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/getElementById) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelectorAll) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/replaceChildren) --- WebApiFile: src/dom-nodes/Element.res Module: WebAPI.Element Types: - type t = WebAPI.DOMTree.element = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, children: WebAPI.HTMLCollection.t, firstElementChild: Null.t, lastElementChild: Null.t, childElementCount: int, previousElementSibling: Null.t, nextElementSibling: Null.t, assignedSlot: Null.t, mutable ariaAtomic: Null.t, mutable ariaAutoComplete: Null.t, mutable ariaBrailleLabel: Null.t, mutable ariaBrailleRoleDescription: Null.t, mutable ariaBusy: Null.t, mutable ariaChecked: Null.t, mutable ariaColCount: Null.t, mutable ariaColIndex: Null.t, mutable ariaColIndexText: Null.t, mutable ariaColSpan: Null.t, mutable ariaCurrent: Null.t, mutable ariaDescription: Null.t, mutable ariaDisabled: Null.t, mutable ariaExpanded: Null.t, mutable ariaHasPopup: Null.t, mutable ariaHidden: Null.t, mutable ariaKeyShortcuts: Null.t, mutable ariaLabel: Null.t, mutable ariaLevel: Null.t, mutable ariaLive: Null.t, mutable ariaModal: Null.t, mutable ariaMultiLine: Null.t, mutable ariaMultiSelectable: Null.t, mutable ariaOrientation: Null.t, mutable ariaPlaceholder: Null.t, mutable ariaPosInSet: Null.t, mutable ariaPressed: Null.t, mutable ariaReadOnly: Null.t, mutable ariaRequired: Null.t, mutable ariaRoleDescription: Null.t, mutable ariaRowCount: Null.t, mutable ariaRowIndex: Null.t, mutable ariaRowIndexText: Null.t, mutable ariaRowSpan: Null.t, mutable ariaSelected: Null.t, mutable ariaSetSize: Null.t, mutable ariaSort: Null.t, mutable ariaValueMax: Null.t, mutable ariaValueMin: Null.t, mutable ariaValueNow: Null.t, mutable ariaValueText: Null.t, } Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - children: WebAPI.HTMLCollection.t - Returns the child elements. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children) - firstElementChild: Null.t - Returns the first child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) - lastElementChild: Null.t - Returns the last child that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) - childElementCount: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - assignedSlot: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) - ariaAtomic: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) - ariaAutoComplete: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) - ariaBrailleLabel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) - ariaBrailleRoleDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) - ariaBusy: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) - ariaChecked: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) - ariaColCount: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) - ariaColIndex: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) - ariaColIndexText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) - ariaColSpan: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) - ariaCurrent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) - ariaDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) - ariaDisabled: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) - ariaExpanded: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) - ariaHasPopup: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) - ariaHidden: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) - ariaKeyShortcuts: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) - ariaLabel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) - ariaLevel: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) - ariaLive: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) - ariaModal: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) - ariaMultiLine: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) - ariaMultiSelectable: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) - ariaOrientation: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) - ariaPlaceholder: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) - ariaPosInSet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) - ariaPressed: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) - ariaReadOnly: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) - ariaRequired: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) - ariaRoleDescription: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) - ariaRowCount: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) - ariaRowIndex: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) - ariaRowIndexText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) - ariaRowSpan: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) - ariaSelected: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) - ariaSetSize: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) - ariaSort: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) - ariaValueMax: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) - ariaValueMin: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) - ariaValueNow: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) - ariaValueText: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let isInstanceOf: 'value => bool Description: `isInstanceOf(value)` Returns whether `value` is an `Element` created in the current JavaScript realm. This is a runtime check. It returns `false` when `globalThis.Element` is unavailable, such as in some server or worker environments. - let classify: 'value => option Description: `classify(value)` Safely narrows a value from a broad DOM or library type to `Element.t`. Use this when an event target, JavaScript binding, or union-like API cannot express its concrete DOM type statically. Returns `Some(element)` when the value is an `Element` in the current realm, and `None` when it is not or when the `Element` constructor is unavailable. ```res switch value->Element.classify { | Some(element) => element->Element.hasAttribute("data-ready") | None => false } ``` --- WebApiFile: src/dom-nodes/ElementInternals.res Module: WebAPI.ElementInternals Types: - type t = WebAPI.DOMTree.elementInternals = { shadowRoot: Null.t, form: Null.t, willValidate: bool, validity: WebAPI.DOM.validityState, validationMessage: string, labels: WebAPI.DOM.nodeList, states: WebAPI.DOMTree.customStateSet, mutable ariaAtomic: Null.t, mutable ariaAutoComplete: Null.t, mutable ariaBrailleLabel: Null.t, mutable ariaBrailleRoleDescription: Null.t, mutable ariaBusy: Null.t, mutable ariaChecked: Null.t, mutable ariaColCount: Null.t, mutable ariaColIndex: Null.t, mutable ariaColIndexText: Null.t, mutable ariaColSpan: Null.t, mutable ariaCurrent: Null.t, mutable ariaDescription: Null.t, mutable ariaDisabled: Null.t, mutable ariaExpanded: Null.t, mutable ariaHasPopup: Null.t, mutable ariaHidden: Null.t, mutable ariaKeyShortcuts: Null.t, mutable ariaLabel: Null.t, mutable ariaLevel: Null.t, mutable ariaLive: Null.t, mutable ariaModal: Null.t, mutable ariaMultiLine: Null.t, mutable ariaMultiSelectable: Null.t, mutable ariaOrientation: Null.t, mutable ariaPlaceholder: Null.t, mutable ariaPosInSet: Null.t, mutable ariaPressed: Null.t, mutable ariaReadOnly: Null.t, mutable ariaRequired: Null.t, mutable ariaRoleDescription: Null.t, mutable ariaRowCount: Null.t, mutable ariaRowIndex: Null.t, mutable ariaRowIndexText: Null.t, mutable ariaRowSpan: Null.t, mutable ariaSelected: Null.t, mutable ariaSetSize: Null.t, mutable ariaSort: Null.t, mutable ariaValueMax: Null.t, mutable ariaValueMin: Null.t, mutable ariaValueNow: Null.t, mutable ariaValueText: Null.t, } Fields: - shadowRoot: Null.t - form: Null.t - willValidate: bool - validity: WebAPI.DOM.validityState - validationMessage: string - labels: WebAPI.DOM.nodeList - states: WebAPI.DOMTree.customStateSet - ariaAtomic: Null.t - ariaAutoComplete: Null.t - ariaBrailleLabel: Null.t - ariaBrailleRoleDescription: Null.t - ariaBusy: Null.t - ariaChecked: Null.t - ariaColCount: Null.t - ariaColIndex: Null.t - ariaColIndexText: Null.t - ariaColSpan: Null.t - ariaCurrent: Null.t - ariaDescription: Null.t - ariaDisabled: Null.t - ariaExpanded: Null.t - ariaHasPopup: Null.t - ariaHidden: Null.t - ariaKeyShortcuts: Null.t - ariaLabel: Null.t - ariaLevel: Null.t - ariaLive: Null.t - ariaModal: Null.t - ariaMultiLine: Null.t - ariaMultiSelectable: Null.t - ariaOrientation: Null.t - ariaPlaceholder: Null.t - ariaPosInSet: Null.t - ariaPressed: Null.t - ariaReadOnly: Null.t - ariaRequired: Null.t - ariaRoleDescription: Null.t - ariaRowCount: Null.t - ariaRowIndex: Null.t - ariaRowIndexText: Null.t - ariaRowSpan: Null.t - ariaSelected: Null.t - ariaSetSize: Null.t - ariaSort: Null.t - ariaValueMax: Null.t - ariaValueMin: Null.t - ariaValueNow: Null.t - ariaValueText: Null.t Functions: - let setFormValue: ( WebAPI.DOMTree.elementInternals, ~value: unknown, ~state: unknown=?, ) => unit Description: Sets both the state and submission value of internals's target element to value. If value is null, the element won't participate in form submission. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) - let setValidity: ( WebAPI.DOMTree.elementInternals, ~flags: WebAPI.DOM.validityStateFlags=?, ~message: string=?, ~anchor: WebAPI.DOMTree.htmlElement=?, ) => unit Description: Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) - let checkValidity: WebAPI.DOMTree.elementInternals => bool Description: Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) - let reportValidity: WebAPI.DOMTree.elementInternals => bool Description: Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) --- WebApiFile: src/dom-nodes/HTML.res Module: WebAPI.HTML Types: - type shadowRootInit = { mutable mode: WebAPI.DOMTree.shadowRootMode, mutable delegatesFocus?: bool, mutable slotAssignment?: WebAPI.DOMTree.slotAssignmentMode, mutable serializable?: bool, } Fields: - mode: WebAPI.DOMTree.shadowRootMode - delegatesFocus: option - slotAssignment: option - serializable: option - type getHTMLOptions = { mutable serializableShadowRoots?: bool, mutable shadowRoots?: array, } Fields: - serializableShadowRoots: option - shadowRoots: option> --- WebApiFile: src/dom-nodes/HTMLCollection.res Module: WebAPI.HTMLCollection Types: - type t<'item> = private {length: int} Description: 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](https://developer.mozilla.org/docs/Web/API/HTMLCollection) Fields: - length: int - Sets or retrieves the number of objects in a collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length) Functions: - let item: (t<'item>, int) => Null.t<'item> Description: Retrieves an object from various collections. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item) - let namedItem: (t<'item>, string) => Null.t<'item> Description: Retrieves a select object or an object from an options collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem) --- WebApiFile: src/dom-nodes/NamedNodeMap.res Module: WebAPI.NamedNodeMap Functions: - let item: (WebAPI.DOM.namedNodeMap, int) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) - let getNamedItem: (WebAPI.DOM.namedNodeMap, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) - let getNamedItemNS: ( WebAPI.DOM.namedNodeMap, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) - let setNamedItem: ( WebAPI.DOM.namedNodeMap, WebAPI.Attr.t, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) - let setNamedItemNS: ( WebAPI.DOM.namedNodeMap, WebAPI.Attr.t, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) - let removeNamedItem: (WebAPI.DOM.namedNodeMap, string) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) - let removeNamedItemNS: ( WebAPI.DOM.namedNodeMap, ~namespace: string, ~localName: string, ) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) --- WebApiFile: src/dom-nodes/Node.res Module: WebAPI.Node Types: - type t = WebAPI.DOMTree.node = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, } Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) --- WebApiFile: src/dom-nodes/NodeFilter.res Module: WebAPI.NodeFilter Types: - type t = private {} Fields: Functions: - let acceptNode: (t, WebAPI.DOMTree.node) => int --- WebApiFile: src/dom-nodes/NodeIterator.res Module: WebAPI.NodeIterator Types: - type t = private { root: WebAPI.DOMTree.node, referenceNode: WebAPI.DOMTree.node, pointerBeforeReferenceNode: bool, whatToShow: int, filter: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/NodeIterator) Fields: - root: WebAPI.DOMTree.node - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) - referenceNode: WebAPI.DOMTree.node - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) - pointerBeforeReferenceNode: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) - whatToShow: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) - filter: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) Functions: - let nextNode: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) - let previousNode: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) --- WebApiFile: src/dom-nodes/NodeList.res Module: WebAPI.NodeList Functions: - let item: (WebAPI.DOM.nodeList<'tNode>, int) => Null.t<'tNode> Description: Returns the node with index index from the collection. The nodes are sorted in tree order. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeList/item) --- WebApiFile: src/dom-nodes/ProcessingInstruction.res Module: WebAPI.ProcessingInstruction Types: - type t = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable data: string, length: int, previousElementSibling: Null.t, nextElementSibling: Null.t, target: string, sheet: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - data: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/data) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/length) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - target: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) - sheet: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) --- WebApiFile: src/dom-nodes/Range.res Module: WebAPI.Range Types: - type t = private { startContainer: WebAPI.DOMTree.node, startOffset: int, endContainer: WebAPI.DOMTree.node, endOffset: int, collapsed: bool, commonAncestorContainer: WebAPI.DOMTree.node, } Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range) Fields: - startContainer: WebAPI.DOMTree.node - Returns range's start node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) - startOffset: int - Returns range's start offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) - endContainer: WebAPI.DOMTree.node - Returns range's end node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) - endOffset: int - Returns range's end offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) - collapsed: bool - Returns true if range is collapsed, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) - commonAncestorContainer: WebAPI.DOMTree.node - 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](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer) Functions: - let make: unit => t - let asAbstractRange: t => WebAPI.AbstractRange.t - let setStart: (t, ~node: WebAPI.DOMTree.node, ~offset: int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setStart) - let setEnd: (t, ~node: WebAPI.DOMTree.node, ~offset: int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setEnd) - let setStartBefore: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) - let setStartAfter: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) - let setEndBefore: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) - let setEndAfter: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) - let collapse: (t, ~toStart: bool=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/collapse) - let selectNode: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/selectNode) - let selectNodeContents: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) - let compareBoundaryPoints: (t, ~how: int, ~sourceRange: t) => int Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) - let deleteContents: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) - let extractContents: t => WebAPI.DOMTree.documentFragment Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/extractContents) - let cloneContents: t => WebAPI.DOMTree.documentFragment Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) - let insertNode: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/insertNode) - let surroundContents: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) - let cloneRange: t => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) - let detach: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/detach) - let isPointInRange: (t, ~node: WebAPI.DOMTree.node, ~offset: int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) - let comparePoint: (t, ~node: WebAPI.DOMTree.node, ~offset: int) => int Description: Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/comparePoint) - let intersectsNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether range intersects node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) - let createContextualFragment: (t, string) => WebAPI.DOMTree.documentFragment Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) --- WebApiFile: src/dom-nodes/Selection.res Module: WebAPI.Selection Types: - type t = private { anchorNode: Null.t, anchorOffset: int, focusNode: Null.t, focusOffset: int, isCollapsed: bool, rangeCount: int, type_: string, direction: string, } Description: 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](https://developer.mozilla.org/docs/Web/API/Selection) Fields: - anchorNode: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) - anchorOffset: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) - focusNode: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) - focusOffset: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) - isCollapsed: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) - rangeCount: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/type) - direction: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/direction) Functions: - let getRangeAt: (t, int) => WebAPI.Range.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) - let addRange: (t, WebAPI.Range.t) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/addRange) - let removeRange: (t, WebAPI.Range.t) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) - let removeAllRanges: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) - let empty: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) - let collapse: (t, ~node: WebAPI.DOMTree.node, ~offset: int=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/collapse) - let setPosition: (t, ~node: WebAPI.DOMTree.node, ~offset: int=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/collapse) - let collapseToStart: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) - let collapseToEnd: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) - let extend: (t, ~node: WebAPI.DOMTree.node, ~offset: int=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/extend) - let setBaseAndExtent: ( t, ~anchorNode: WebAPI.DOMTree.node, ~anchorOffset: int, ~focusNode: WebAPI.DOMTree.node, ~focusOffset: int, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) - let selectAllChildren: (t, WebAPI.DOMTree.node) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) - let modify: ( t, ~alter: string=?, ~direction: string=?, ~granularity: string=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/modify) - let deleteFromDocument: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) - let containsNode: ( t, ~node: WebAPI.DOMTree.node, ~allowPartialContainment: bool=?, ) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) --- WebApiFile: src/dom-nodes/ShadowRoot.res Module: WebAPI.ShadowRoot Types: - type t = WebAPI.DOMTree.shadowRoot = { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mode: WebAPI.DOMTree.shadowRootMode, delegatesFocus: bool, slotAssignment: WebAPI.DOMTree.slotAssignmentMode, clonable: bool, serializable: bool, host: WebAPI.DOMTree.element, mutable innerHTML: string, styleSheets: WebAPI.StyleSheetList.t, mutable adoptedStyleSheets: array< WebAPI.StyleSheet.cssStyleSheet, >, fullscreenElement: Null.t, activeElement: Null.t, pictureInPictureElement: Null.t, pointerLockElement: Null.t, } Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - mode: WebAPI.DOMTree.shadowRootMode - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) - delegatesFocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) - slotAssignment: WebAPI.DOMTree.slotAssignmentMode - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) - clonable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) - serializable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) - host: WebAPI.DOMTree.element - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) - styleSheets: WebAPI.StyleSheetList.t - 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](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) - adoptedStyleSheets: array - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) - fullscreenElement: Null.t - Returns document's fullscreen element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) - activeElement: Null.t - 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](https://developer.mozilla.org/docs/Web/API/Document/activeElement) - pictureInPictureElement: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) - pointerLockElement: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asDocumentFragment: t => WebAPI.DOMTree.documentFragment - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/append) - let getElementById: (t, string) => Null.t Description: Returns the first element within node's descendants whose ID is elementId. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/getElementById) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelectorAll) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/replaceChildren) - let getAnimations: WebAPI.DOMTree.shadowRoot => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) - let setHTMLUnsafe: (WebAPI.DOMTree.shadowRoot, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) - let getHTML: ( WebAPI.DOMTree.shadowRoot, ~options: WebAPI.HTML.getHTMLOptions=?, ) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) --- WebApiFile: src/dom-nodes/StaticRange.res Module: WebAPI.StaticRange Types: - type t = WebAPI.AbstractRange.t = { startContainer: WebAPI.DOMTree.node, startOffset: int, endContainer: WebAPI.DOMTree.node, endOffset: int, collapsed: bool, } Description: [See StaticRange on MDN](https://developer.mozilla.org/docs/Web/API/StaticRange) Fields: - startContainer: WebAPI.DOMTree.node - Returns range's start node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) - startOffset: int - Returns range's start offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) - endContainer: WebAPI.DOMTree.node - Returns range's end node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) - endOffset: int - Returns range's end offset. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) - collapsed: bool - Returns true if range is collapsed, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) --- WebApiFile: src/dom-nodes/Text.res Module: WebAPI.Text Types: - type t = private { nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable data: string, length: int, previousElementSibling: Null.t, nextElementSibling: Null.t, wholeText: string, assignedSlot: Null.t, } Description: 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](https://developer.mozilla.org/docs/Web/API/Text) Fields: - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - data: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/data) - length: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/length) - previousElementSibling: Null.t - Returns the first preceding sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - nextElementSibling: Null.t - Returns the first following sibling that is an element, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - wholeText: string - Returns the combined data of all direct Text node siblings. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Text/wholeText) - assignedSlot: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asCharacterData: t => \"CharacterData-WebAPI".t - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - let appendData: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - let deleteData: (t, ~offset: int, ~count: int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) - let insertData: (t, ~offset: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let replaceData: (t, ~offset: int, ~count: int, ~data: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let substringData: (t, ~offset: int, ~count: int) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) - let make: (~data: string=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Text) - let splitText: (t, int) => t Description: Splits data at the given offset and returns the remainder as Text node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Text/splitText) --- WebApiFile: src/dom-nodes/TreeWalker.res Module: WebAPI.TreeWalker Types: - type t = { root: WebAPI.DOMTree.node, whatToShow: int, filter: Null.t, mutable currentNode: WebAPI.DOMTree.node, } Description: The nodes of a document subtree and a position within them. [See TreeWalker on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker) TODO: mark as private once mutating fields of private records is allowed Fields: - root: WebAPI.DOMTree.node - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) - whatToShow: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) - filter: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) - currentNode: WebAPI.DOMTree.node - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) Functions: - let parentNode: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) - let firstChild: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) - let lastChild: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) - let previousSibling: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) - let nextSibling: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) - let previousNode: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) - let nextNode: t => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) --- WebApiFile: src/dom-platform/DOMException.res Module: WebAPI.DOMException Types: - type t = WebAPI.DOM.domException Fields: - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMException/name) - message: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMException/message) Functions: - let make: (~message: string=?, ~name: string=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMException) --- WebApiFile: src/dom-platform/DOMStringList.res Module: WebAPI.DOMStringList Types: - type t = WebAPI.DOM.domStringList Fields: - length: int - Returns the number of strings in strings. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) Functions: - let item: (t, int) => Null.t Description: Returns the string with index index from strings. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) - let contains: (t, string) => bool Description: Returns true if strings contains string, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) --- WebApiFile: src/dom-platform/DOMTokenList.res Module: WebAPI.DOMTokenList Functions: - let item: (WebAPI.DOM.domTokenList, int) => Null.t Description: Returns the token with index index. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) - let contains: (WebAPI.DOM.domTokenList, string) => bool Description: Returns true if token is present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) - let add: (WebAPI.DOM.domTokenList, string) => unit Description: Adds all arguments passed, except those already present. Throws a "SyntaxError" DOMException if one of the arguments is the empty string. Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) - let remove: (WebAPI.DOM.domTokenList, string) => unit Description: Removes arguments passed, if they are present. Throws a "SyntaxError" DOMException if one of the arguments is the empty string. Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) - let toggle: ( WebAPI.DOM.domTokenList, ~token: string, ~force: bool=?, ) => bool Description: If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). Returns true if token is now present, and false otherwise. Throws a "SyntaxError" DOMException if token is empty. Throws an "InvalidCharacterError" DOMException if token contains any spaces. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) - let replace: ( WebAPI.DOM.domTokenList, ~token: string, ~newToken: string, ) => bool Description: Replaces token with newToken. Returns true if token was replaced with newToken, and false otherwise. Throws a "SyntaxError" DOMException if one of the arguments is the empty string. Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) - let supports: (WebAPI.DOM.domTokenList, string) => bool Description: Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. Throws a TypeError if the associated attribute has no supported tokens defined. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) --- WebApiFile: src/event/AbortController.res Module: WebAPI.AbortController Functions: - let make: unit => WebAPI.DOM.abortController - let abort: (WebAPI.DOM.abortController, ~reason: JSON.t=?) => unit Description: Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController/abort) --- WebApiFile: src/event/AbortSignal.res Module: WebAPI.AbortSignal Functions: - let asEventTarget: WebAPI.DOM.abortSignal => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.DOM.abortSignal, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.DOM.abortSignal, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.DOM.abortSignal, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.DOM.abortSignal, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (WebAPI.DOM.abortSignal, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let abort: (~reason: JSON.t=?) => WebAPI.DOM.abortSignal Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) - let timeout: int => WebAPI.DOM.abortSignal Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) - let any: array => WebAPI.DOM.abortSignal Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) - let throwIfAborted: WebAPI.DOM.abortSignal => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) --- WebApiFile: src/event/Event.res Module: WebAPI.Event Types: - type eventInit = WebAPI.DOM.eventInit = { mutable bubbles?: bool, mutable cancelable?: bool, mutable composed?: bool, } Fields: - bubbles: option - cancelable: option - composed: option Functions: - let make: ( ~type_: string, ~eventInitDict: eventInit=?, ) => WebAPI.DOM.event - let type_: WebAPI.DOM.event => WebAPI.EventType.t - let target: WebAPI.DOM.event => Null.t - let currentTarget: WebAPI.DOM.event => Null.t - let eventPhase: WebAPI.DOM.event => int - let bubbles: WebAPI.DOM.event => bool - let cancelable: WebAPI.DOM.event => bool - let defaultPrevented: WebAPI.DOM.event => bool - let composed: WebAPI.DOM.event => bool - let isTrusted: WebAPI.DOM.event => bool - let timeStamp: WebAPI.DOM.event => float - let asEvent: WebAPI.DOM.event => WebAPI.DOM.event - let composedPath: WebAPI.DOM.event => array Description: Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composedPath) - let preventDefault: WebAPI.DOM.event => unit Description: If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) - let stopImmediatePropagation: WebAPI.DOM.event => unit Description: Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) - let stopPropagation: WebAPI.DOM.event => unit Description: When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) --- WebApiFile: src/event/EventTarget.res Module: WebAPI.EventTarget Functions: - let make: unit => WebAPI.DOM.eventTarget - let asEventTarget: WebAPI.DOM.eventTarget => WebAPI.DOM.eventTarget - let addEventListener: ( WebAPI.DOM.eventTarget, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( WebAPI.DOM.eventTarget, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( WebAPI.DOM.eventTarget, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( WebAPI.DOM.eventTarget, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (WebAPI.DOM.eventTarget, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) --- WebApiFile: src/event/ExtendableEvent.res Module: WebAPI.ExtendableEvent Functions: - let asEvent: WebAPI.DOM.extendableEvent => WebAPI.DOM.event - let composedPath: WebAPI.DOM.extendableEvent => array Description: Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composedPath) - let preventDefault: WebAPI.DOM.extendableEvent => unit Description: If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) - let stopImmediatePropagation: WebAPI.DOM.extendableEvent => unit Description: Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) - let stopPropagation: WebAPI.DOM.extendableEvent => unit Description: When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) - let asExtendableEvent: WebAPI.DOM.extendableEvent => WebAPI.DOM.extendableEvent - let waitUntil: (WebAPI.DOM.extendableEvent, promise<'a>) => unit --- WebApiFile: src/fetch/BodyInit.res Module: WebAPI.BodyInit Types: - type t = WebAPI.FetchTypes.bodyInit Functions: - let fromString: string => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromArrayBuffer: ArrayBuffer.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromTypedArray: TypedArray.t<'t> => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromDataView: DataView.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromBlob: WebAPI.Blob.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromFile: WebAPI.File.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromURLSearchParams: WebAPI.URLSearchParams.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromFormData: WebAPI.FormData.t => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) - let fromReadableStream: WebAPI.ReadableStream.t<'t> => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) --- WebApiFile: src/fetch/Fetch.res Module: WebAPI.Fetch Functions: - let fetch: ( string, ~init: WebAPI.Request.requestInit=?, ) => promise Description: Starts the process of fetching a resource from the network, returning a promise that is fulfilled once the response is available. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch) - let fetchWithRequest: ( WebAPI.Request.t, ~init: WebAPI.Request.requestInit=?, ) => promise Description: Starts the process of fetching a resource from the network, returning a promise that is fulfilled once the response is available. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch) --- WebApiFile: src/fetch/FormData.res Module: WebAPI.FormData Types: - type t = WebAPI.FetchTypes.formData = {} Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData) Fields: - type formDataEntryValue = WebAPI.FormDataEntryValue.t Functions: - let make: (~form: 'form=?, ~submitter: 'submitter=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData) - let append: (t, ~name: string, ~value: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/append) - let appendBlob: ( t, ~name: string, ~blobValue: WebAPI.Blob.t, ~filename: string=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/append) - let delete: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/delete) - let get: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get) - let getAll: (t, string) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/getAll) - let has: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/has) - let entries: t => iterable<(string, formDataEntryValue)> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/entries) - let keys: t => iterable Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/keys) - let set: (t, ~name: string, ~value: string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/set) - let setBlob: ( t, ~name: string, ~blobValue: WebAPI.Blob.t, ~filename: string=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/set) --- WebApiFile: src/fetch/FormDataEntryValue.res Module: WebAPI.FormDataEntryValue Types: - @unboxed type t = WebAPI.FetchTypes.formDataEntryValue = | String(string) | File(WebAPI.FileTypes.file) --- WebApiFile: src/fetch/Headers.res Module: WebAPI.Headers Functions: - let make: unit => WebAPI.FetchTypes.headers Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) - let fromDict: dict => WebAPI.FetchTypes.headers Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) - let fromHeaders: WebAPI.FetchTypes.headers => WebAPI.FetchTypes.headers Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) - let fromKeyValueArray: array<(string, string)> => WebAPI.FetchTypes.headers Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) - let append: ( WebAPI.FetchTypes.headers, ~name: string, ~value: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/append) - let delete: (WebAPI.FetchTypes.headers, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/delete) - let get: (WebAPI.FetchTypes.headers, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/get) - let getSetCookie: WebAPI.FetchTypes.headers => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) - let has: (WebAPI.FetchTypes.headers, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/has) - let set: ( WebAPI.FetchTypes.headers, ~name: string, ~value: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers/set) --- WebApiFile: src/fetch/HeadersInit.res Module: WebAPI.HeadersInit Types: - type t = WebAPI.FetchTypes.headersInit Functions: - let fromDict: dict => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_headers) - let fromHeaders: WebAPI.FetchTypes.headers => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_headers) - let fromKeyValueArray: array<(string, string)> => t Description: [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_headers) --- WebApiFile: src/fetch/Request.res Module: WebAPI.Request Types: - type t = WebAPI.FetchTypes.request = { method: string, url: string, headers: WebAPI.FetchTypes.headers, destination: WebAPI.FetchTypes.requestDestination, referrer: string, referrerPolicy: WebAPI.FetchTypes.referrerPolicy, mode: WebAPI.FetchTypes.requestMode, credentials: WebAPI.FetchTypes.requestCredentials, cache: WebAPI.FetchTypes.requestCache, redirect: WebAPI.FetchTypes.requestRedirect, integrity: string, keepalive: bool, signal: WebAPI.DOM.abortSignal, body: Null.t>>, bodyUsed: bool, } Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request) Fields: - method: string - Returns request's HTTP method, which is "GET" by default. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/method) - url: string - Returns the WebApiURL of request as a string. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/url) - headers: WebAPI.FetchTypes.headers - Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/headers) - destination: WebAPI.FetchTypes.requestDestination - Returns the kind of resource requested by request, e.g., "document" or "script". [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/destination) - referrer: string - Returns the referrer of request. Its value can be a same-origin WebApiURL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/referrer) - referrerPolicy: WebAPI.FetchTypes.referrerPolicy - Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy) - mode: WebAPI.FetchTypes.requestMode - Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/mode) - credentials: WebAPI.FetchTypes.requestCredentials - Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/credentials) - cache: WebAPI.FetchTypes.requestCache - Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/cache) - redirect: WebAPI.FetchTypes.requestRedirect - Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/redirect) - integrity: string - Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/integrity) - keepalive: bool - Returns a boolean indicating whether or not request can outlive the global in which it was created. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/keepalive) - signal: WebAPI.DOM.abortSignal - Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/signal) - body: Null.t>> - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/body) - bodyUsed: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) - type requestInit = WebAPI.FetchTypes.requestInit Fields: - method: option - A string to set request's method. - headers: option - A Headers object, an object literal, or an array of two-item arrays to set request's headers. - body: option> - A BodyInit object or null to set request's body. - referrer: option - A string whose value is a same-origin WebApiURL, "about:client", or the empty string, to set request's referrer. - referrerPolicy: option - A referrer policy to set request's referrerPolicy. - mode: option - A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. - credentials: option - A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. - cache: option - A string indicating how the request will interact with the browser's cache to set request's cache. - redirect: option - A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. - integrity: option - A cryptographic hash of the resource to be fetched by request. Sets request's integrity. - keepalive: option - A boolean to set request's keepalive. - signal: option> - An AbortSignal to set request's signal. - priority: option - window: option> - Can only be null. Used to disassociate request from any Window. - type bodyInit = WebAPI.BodyInit.t - type headersInit = WebAPI.HeadersInit.t Functions: - let fromURL: (string, ~init: requestInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request) - let fromRequest: (t, ~init: requestInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request) - let arrayBuffer: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) - let blob: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/blob) - let bytes: t => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/bytes) - let formData: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/formData) - let json: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/json) - let text: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/text) - let clone: t => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/clone) --- WebApiFile: src/fetch/Response.res Module: WebAPI.Response Types: - type t = WebAPI.FetchTypes.response = { type_: WebAPI.FetchTypes.responseType, url: string, redirected: bool, status: int, ok: bool, statusText: string, headers: WebAPI.FetchTypes.headers, body: Null.t>>, bodyUsed: bool, } Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) Fields: - type_: WebAPI.FetchTypes.responseType - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/type) - url: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/url) - redirected: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/redirected) - status: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/status) - ok: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/ok) - statusText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/statusText) - headers: WebAPI.FetchTypes.headers - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/headers) - body: Null.t>> - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/body) - bodyUsed: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) - type responseInit = WebAPI.FetchTypes.responseInit Fields: - status: option - statusText: option - headers: option - type bodyInit = WebAPI.BodyInit.t - type headersInit = WebAPI.HeadersInit.t Functions: - let fromNull: (~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromString: (string, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromArrayBuffer: (ArrayBuffer.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromTypedArray: (TypedArray.t<'t>, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromDataView: (DataView.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromBlob: (WebAPI.Blob.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromFile: (WebAPI.File.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromURLSearchParams: (WebAPI.URLSearchParams.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromFormData: (WebAPI.FormData.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let fromReadableStream: (WebAPI.ReadableStream.t<'t>, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) - let arrayBuffer: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) - let blob: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/blob) - let bytes: t => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/bytes) - let formData: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/formData) - let json: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/json) - let text: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/text) - let error: unit => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/error_static) - let redirect: (~url: string, ~status: int=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) - let jsonR: (~data: JSON.t, ~init: responseInit=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/json_static) - let clone: t => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response/clone) --- WebApiFile: src/file/Blob.res Module: WebAPI.Blob Types: - type t = WebAPI.FileTypes.blob = {size: int, type_: string} Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob) Fields: - size: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/size) - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/type) - type blobPart = WebAPI.FileTypes.blobPart - type blobPropertyBag = WebAPI.FileTypes.blobPropertyBag Fields: - type_: option - endings: option Functions: - let make: ( ~blobParts: array=?, ~options: blobPropertyBag=?, ) => t - let asBlob: t => t - let slice: (t, ~start: int=?, ~end: int=?, ~contentType: string=?) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/slice) - let stream: t => WebAPI.ReadableStream.t> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/stream) - let text: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/text) - let arrayBuffer: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) - let bytes: t => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/bytes) --- WebApiFile: src/file/File.res Module: WebAPI.File Types: - type t = WebAPI.FileTypes.file = { size: int, type_: string, name: string, lastModified: int, webkitRelativePath: string, } Fields: - size: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/size) - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/type) - name: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/File/name) - lastModified: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/File/lastModified) - webkitRelativePath: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) Functions: - let asBlob: t => \"Blob-WebAPI".t - let slice: ( t, ~start: int=?, ~end: int=?, ~contentType: string=?, ) => \"Blob-WebAPI".t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/slice) - let stream: t => WebAPI.ReadableStream.t> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/stream) - let text: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/text) - let arrayBuffer: t => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) - let bytes: t => promise> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/bytes) - let make: ( ~fileBits: array, ~fileName: string, ~options: WebAPI.FileTypes.filePropertyBag=?, ) => t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/File) - let isInstanceOf: 't => bool --- WebApiFile: src/file/FileList.res Module: WebAPI.FileList Functions: - let item: (WebAPI.DOM.fileList, int) => Null.t Description: Returns the `WebApiFile` at the specified index. `FileList` is not an array, so you need to iterate manually using `length` and `item`: ```rescript let files = [] for i in 0 to fileList.length - 1 { files->Array.push(fileList->FileList.item(i)) } ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileList/item) --- WebApiFile: src/file/FileSystemDirectoryEntry.res Module: WebAPI.FileSystemDirectoryEntry Functions: - let asFileSystemEntry: WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryEntry => WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntry - let getParent: ( WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryEntry, ~successCallback: WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntryCallback=?, ~errorCallback: WebAPI.FileAndDirectoryEntriesTypes.errorCallback=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) - let createReader: WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryEntry => WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryReader Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) - let getFile: ( WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryEntry, ~path: string=?, ~options: WebAPI.FileAndDirectoryEntriesTypes.fileSystemFlags=?, ~successCallback: WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntryCallback=?, ~errorCallback: WebAPI.FileAndDirectoryEntriesTypes.errorCallback=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) - let getDirectory: ( WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryEntry, ~path: string=?, ~options: WebAPI.FileAndDirectoryEntriesTypes.fileSystemFlags=?, ~successCallback: WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntryCallback=?, ~errorCallback: WebAPI.FileAndDirectoryEntriesTypes.errorCallback=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) --- WebApiFile: src/file/FileSystemDirectoryHandle.res Module: WebAPI.FileSystemDirectoryHandle Functions: - let asFileSystemHandle: WebAPI.FileTypes.fileSystemDirectoryHandle => WebAPI.FileTypes.fileSystemHandle - let isSameEntry: ( WebAPI.FileTypes.fileSystemDirectoryHandle, WebAPI.FileTypes.fileSystemHandle, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) - let getFileHandle: ( WebAPI.FileTypes.fileSystemDirectoryHandle, ~name: string, ~options: WebAPI.FileTypes.fileSystemGetFileOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) - let getDirectoryHandle: ( WebAPI.FileTypes.fileSystemDirectoryHandle, ~name: string, ~options: WebAPI.FileTypes.fileSystemGetDirectoryOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) - let removeEntry: ( WebAPI.FileTypes.fileSystemDirectoryHandle, ~name: string, ~options: WebAPI.FileTypes.fileSystemRemoveOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) - let resolve: ( WebAPI.FileTypes.fileSystemDirectoryHandle, WebAPI.FileTypes.fileSystemHandle, ) => promise>> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) --- WebApiFile: src/file/FileSystemDirectoryReader.res Module: WebAPI.FileSystemDirectoryReader Functions: - let readEntries: ( WebAPI.FileAndDirectoryEntriesTypes.fileSystemDirectoryReader, ~successCallback: WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntriesCallback, ~errorCallback: WebAPI.FileAndDirectoryEntriesTypes.errorCallback=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) --- WebApiFile: src/file/FileSystemEntry.res Module: WebAPI.FileSystemEntry Functions: - let getParent: ( WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntry, ~successCallback: WebAPI.FileAndDirectoryEntriesTypes.fileSystemEntryCallback=?, ~errorCallback: WebAPI.FileAndDirectoryEntriesTypes.errorCallback=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) --- WebApiFile: src/file/FileSystemFileHandle.res Module: WebAPI.FileSystemFileHandle Functions: - let asFileSystemHandle: WebAPI.FileTypes.fileSystemFileHandle => WebAPI.FileTypes.fileSystemHandle - let isSameEntry: ( WebAPI.FileTypes.fileSystemFileHandle, WebAPI.FileTypes.fileSystemHandle, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) - let getFile: WebAPI.FileTypes.fileSystemFileHandle => promise< WebAPI.FileTypes.file, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) - let createWritable: ( WebAPI.FileTypes.fileSystemFileHandle, ~options: WebAPI.FileTypes.fileSystemCreateWritableOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) --- WebApiFile: src/file/FileSystemHandle.res Module: WebAPI.FileSystemHandle Functions: - let isSameEntry: ( WebAPI.FileTypes.fileSystemHandle, WebAPI.FileTypes.fileSystemHandle, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) --- WebApiFile: src/file/FileSystemWritableFileStream.res Module: WebAPI.FileSystemWritableFileStream Functions: - let asWritableStream: WebAPI.FileTypes.fileSystemWritableFileStream => WebAPI.FileTypes.writableStream< 'w, > - let abort: ( WebAPI.FileTypes.fileSystemWritableFileStream, ~reason: JSON.t=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) - let close: WebAPI.FileTypes.fileSystemWritableFileStream => promise< unit, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/close) - let getWriter: WebAPI.FileTypes.fileSystemWritableFileStream => WebAPI.FileTypes.writableStreamDefaultWriter< 'w, > Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) - let write: ( WebAPI.FileTypes.fileSystemWritableFileStream, DataView.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) - let write2: ( WebAPI.FileTypes.fileSystemWritableFileStream, ArrayBuffer.t, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) - let write3: ( WebAPI.FileTypes.fileSystemWritableFileStream, WebAPI.FileTypes.blob, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) - let write4: ( WebAPI.FileTypes.fileSystemWritableFileStream, string, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) - let write5: ( WebAPI.FileTypes.fileSystemWritableFileStream, WebAPI.FileTypes.writeParams, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) - let seek: ( WebAPI.FileTypes.fileSystemWritableFileStream, int, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) - let truncate: ( WebAPI.FileTypes.fileSystemWritableFileStream, int, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) --- WebApiFile: src/file/ReadableStream.res Module: WebAPI.ReadableStream Types: - type t<'r> = WebAPI.FileTypes.readableStream<'r> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream) Fields: - locked: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) Functions: - let make: unit => t<'t> Description: `make()` Creates a new empty `ReadableStream`. ```res let stream: ReadableStream.t = ReadableStream.make() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream) - let fromUnderlyingSource: ( WebAPI.FileTypes.underlyingSource<'t>, ~strategy: WebAPI.FileTypes.queuingStrategy<'t>=?, ) => t<'t> Description: `fromUnderlyingSource(underlyingSource<'t>, ~strategy: queuingStrategy<'t>=?)` Creates a new `ReadableStream` from an `underlyingSource`, with an optional queuing strategy. ```res let stream = ReadableStream.fromUnderlyingSource(myUnderlyingSource) let streamWithStrategy = ReadableStream.fromUnderlyingSource(myUnderlyingSource, ~strategy=myQueuingStrategy) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream) - let cancel: (t<'r>, ~reason: JSON.t=?) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) - let getReader: ( t<'r>, ~options: WebAPI.FileTypes.readableStreamGetReaderOptions=?, ) => WebAPI.FileTypes.readableStreamReader<'r> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) - let pipeThrough: ( t<'r>, ~transform: WebAPI.FileTypes.readableWritablePair<'t, 'r>, ~options: WebAPI.FileTypes.streamPipeOptions=?, ) => t<'t> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) - let pipeTo: ( t<'r>, ~destination: WebAPI.FileTypes.writableStream<'r>, ~options: WebAPI.FileTypes.streamPipeOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) - let tee: t<'r> => array> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) --- WebApiFile: src/file/WritableStream.res Module: WebAPI.WritableStream Functions: - let make: ( ~underlyingSink: WebAPI.FileTypes.underlyingSink<'w>=?, ~strategy: WebAPI.FileTypes.queuingStrategy<'w>=?, ) => WebAPI.FileTypes.writableStream<'w> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream) - let abort: ( WebAPI.FileTypes.writableStream<'w>, ~reason: JSON.t=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) - let close: WebAPI.FileTypes.writableStream<'w> => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/close) - let getWriter: WebAPI.FileTypes.writableStream< 'w, > => WebAPI.FileTypes.writableStreamDefaultWriter<'w> Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) --- WebApiFile: src/file/WritableStreamDefaultController.res Module: WebAPI.WritableStreamDefaultController Functions: - let error: ( WebAPI.FileTypes.writableStreamDefaultController, ~e: JSON.t=?, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) --- WebApiFile: src/geometry/DOMMatrix.res Module: WebAPI.DOMMatrix Functions: - let make: unit => WebAPI.DOM.domMatrix Description: `make()` Creates a new identity `DOMMatrix`. ```res let matrix = DOMMatrix.make() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrix) - let fromString: string => WebAPI.DOM.domMatrix Description: `fromString(string)` Creates a new `DOMMatrix` from a transform string. ```res let matrix = DOMMatrix.fromString("matrix(1, 0, 0, 1, 0, 0)") ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrix) - let fromArray: array => WebAPI.DOM.domMatrix Description: `fromArray(array)` Creates a new `DOMMatrix` from an array of matrix component values. ```res let matrix = DOMMatrix.fromArray([1., 0., 0., 1., 0., 0.]) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrix) - let asDOMMatrixReadOnly: WebAPI.DOM.domMatrix => WebAPI.DOM.domMatrixReadOnly - let fromMatrix: ( ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrixReadOnly - let fromFloat32Array: array => WebAPI.DOM.domMatrixReadOnly - let fromFloat64Array: Float64Array.t => WebAPI.DOM.domMatrixReadOnly - let translate: ( WebAPI.DOM.domMatrix, ~tx: float=?, ~ty: float=?, ~tz: float=?, ) => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) - let scale: ( WebAPI.DOM.domMatrix, ~scaleX: float=?, ~scaleY: float=?, ~scaleZ: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) - let scale3d: ( WebAPI.DOM.domMatrix, ~scale: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix - let rotate: ( WebAPI.DOM.domMatrix, ~rotX: float=?, ~rotY: float=?, ~rotZ: float=?, ) => WebAPI.DOM.domMatrix - let rotateFromVector: ( WebAPI.DOM.domMatrix, ~x: float=?, ~y: float=?, ) => WebAPI.DOM.domMatrix - let rotateAxisAngle: ( WebAPI.DOM.domMatrix, ~x: float=?, ~y: float=?, ~z: float=?, ~angle: float=?, ) => WebAPI.DOM.domMatrix - let skewX: (WebAPI.DOM.domMatrix, ~sx: float=?) => WebAPI.DOM.domMatrix - let skewY: (WebAPI.DOM.domMatrix, ~sy: float=?) => WebAPI.DOM.domMatrix - let multiply: ( WebAPI.DOM.domMatrix, ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrix - let flipX: WebAPI.DOM.domMatrix => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) - let flipY: WebAPI.DOM.domMatrix => WebAPI.DOM.domMatrix - let inverse: WebAPI.DOM.domMatrix => WebAPI.DOM.domMatrix - let transformPoint: ( WebAPI.DOM.domMatrix, ~point: WebAPI.DOM.domPointInit=?, ) => WebAPI.DOM.domPoint - let toFloat32Array: WebAPI.DOM.domMatrix => array - let toFloat64Array: WebAPI.DOM.domMatrix => Float64Array.t - let toJSON: WebAPI.DOM.domMatrix => Dict.t - let fromMatrixD: (~other: WebAPI.DOM.domMatrixInit=?) => WebAPI.DOM.domMatrix - let fromFloat32ArrayD: array => WebAPI.DOM.domMatrix - let fromFloat64ArrayD: Float64Array.t => WebAPI.DOM.domMatrix - let multiplySelf: ( WebAPI.DOM.domMatrix, ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrix - let preMultiplySelf: ( WebAPI.DOM.domMatrix, ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrix - let translateSelf: ( WebAPI.DOM.domMatrix, ~tx: float=?, ~ty: float=?, ~tz: float=?, ) => WebAPI.DOM.domMatrix - let scaleSelf: ( WebAPI.DOM.domMatrix, ~scaleX: float=?, ~scaleY: float=?, ~scaleZ: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix - let scale3dSelf: ( WebAPI.DOM.domMatrix, ~scale: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix - let rotateSelf: ( WebAPI.DOM.domMatrix, ~rotX: float=?, ~rotY: float=?, ~rotZ: float=?, ) => WebAPI.DOM.domMatrix - let rotateFromVectorSelf: ( WebAPI.DOM.domMatrix, ~x: float=?, ~y: float=?, ) => WebAPI.DOM.domMatrix - let rotateAxisAngleSelf: ( WebAPI.DOM.domMatrix, ~x: float=?, ~y: float=?, ~z: float=?, ~angle: float=?, ) => WebAPI.DOM.domMatrix - let skewXSelf: (WebAPI.DOM.domMatrix, ~sx: float=?) => WebAPI.DOM.domMatrix - let skewYSelf: (WebAPI.DOM.domMatrix, ~sy: float=?) => WebAPI.DOM.domMatrix - let invertSelf: WebAPI.DOM.domMatrix => WebAPI.DOM.domMatrix - let setMatrixValue: (WebAPI.DOM.domMatrix, string) => WebAPI.DOM.domMatrix --- WebApiFile: src/geometry/DOMMatrixReadOnly.res Module: WebAPI.DOMMatrixReadOnly Functions: - let make: unit => WebAPI.DOM.domMatrixReadOnly Description: `make()` Creates a new identity `DOMMatrixReadOnly`. ```res let matrix = DOMMatrixReadOnly.make() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) - let fromString: string => WebAPI.DOM.domMatrixReadOnly Description: `fromString(string)` Creates a new `DOMMatrixReadOnly` from a transform string. ```res let matrix = DOMMatrixReadOnly.fromString("matrix(1, 0, 0, 1, 0, 0)") ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) - let fromArray: array => WebAPI.DOM.domMatrixReadOnly Description: `fromArray(array)` Creates a new `DOMMatrixReadOnly` from an array of matrix component values. ```res let matrix = DOMMatrixReadOnly.fromArray([1., 0., 0., 1., 0., 0.]) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) - let fromMatrix: ( ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrixReadOnly - let fromFloat32Array: array => WebAPI.DOM.domMatrixReadOnly - let fromFloat64Array: Float64Array.t => WebAPI.DOM.domMatrixReadOnly - let translate: ( WebAPI.DOM.domMatrixReadOnly, ~tx: float=?, ~ty: float=?, ~tz: float=?, ) => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) - let scale: ( WebAPI.DOM.domMatrixReadOnly, ~scaleX: float=?, ~scaleY: float=?, ~scaleZ: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) - let scale3d: ( WebAPI.DOM.domMatrixReadOnly, ~scale: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?, ) => WebAPI.DOM.domMatrix - let rotate: ( WebAPI.DOM.domMatrixReadOnly, ~rotX: float=?, ~rotY: float=?, ~rotZ: float=?, ) => WebAPI.DOM.domMatrix - let rotateFromVector: ( WebAPI.DOM.domMatrixReadOnly, ~x: float=?, ~y: float=?, ) => WebAPI.DOM.domMatrix - let rotateAxisAngle: ( WebAPI.DOM.domMatrixReadOnly, ~x: float=?, ~y: float=?, ~z: float=?, ~angle: float=?, ) => WebAPI.DOM.domMatrix - let skewX: ( WebAPI.DOM.domMatrixReadOnly, ~sx: float=?, ) => WebAPI.DOM.domMatrix - let skewY: ( WebAPI.DOM.domMatrixReadOnly, ~sy: float=?, ) => WebAPI.DOM.domMatrix - let multiply: ( WebAPI.DOM.domMatrixReadOnly, ~other: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domMatrix - let flipX: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) - let flipY: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix - let inverse: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix - let transformPoint: ( WebAPI.DOM.domMatrixReadOnly, ~point: WebAPI.DOM.domPointInit=?, ) => WebAPI.DOM.domPoint - let toFloat32Array: WebAPI.DOM.domMatrixReadOnly => array - let toFloat64Array: WebAPI.DOM.domMatrixReadOnly => Float64Array.t - let toJSON: WebAPI.DOM.domMatrixReadOnly => Dict.t --- WebApiFile: src/geometry/DOMPoint.res Module: WebAPI.DOMPoint Functions: - let make: ( ~x: float=?, ~y: float=?, ~z: float=?, ~w: float=?, ) => WebAPI.DOM.domPoint Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPoint) - let asDOMPointReadOnly: WebAPI.DOM.domPoint => WebAPI.DOM.domPointReadOnly - let fromPoint: ( ~other: WebAPI.DOM.domPointInit=?, ) => WebAPI.DOM.domPointReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) - let matrixTransform: ( WebAPI.DOM.domPoint, ~matrix: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domPoint - let toJSON: WebAPI.DOM.domPoint => Dict.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) - let fromPointD: (~other: WebAPI.DOM.domPointInit=?) => WebAPI.DOM.domPoint Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) --- WebApiFile: src/geometry/DOMPointReadOnly.res Module: WebAPI.DOMPointReadOnly Functions: - let make: ( ~x: float=?, ~y: float=?, ~z: float=?, ~w: float=?, ) => WebAPI.DOM.domPointReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) - let fromPoint: ( ~other: WebAPI.DOM.domPointInit=?, ) => WebAPI.DOM.domPointReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) - let matrixTransform: ( WebAPI.DOM.domPointReadOnly, ~matrix: WebAPI.DOM.domMatrixInit=?, ) => WebAPI.DOM.domPoint - let toJSON: WebAPI.DOM.domPointReadOnly => Dict.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) --- WebApiFile: src/geometry/DOMRect.res Module: WebAPI.DOMRect Functions: - let make: ( ~x: float=?, ~y: float=?, ~width: float=?, ~height: float=?, ) => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRect) - let asDOMRectReadOnly: WebAPI.DOM.domRect => WebAPI.DOM.domRectReadOnly - let fromRect: ( ~other: WebAPI.DOM.domRectInit=?, ) => WebAPI.DOM.domRectReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) - let toJSON: WebAPI.DOM.domRect => Dict.t - let fromRectD: (~other: WebAPI.DOM.domRectInit=?) => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) --- WebApiFile: src/geometry/DOMRectList.res Module: WebAPI.DOMRectList Functions: - let item: (WebAPI.DOM.domRectList, int) => Null.t --- WebApiFile: src/geometry/DOMRectReadOnly.res Module: WebAPI.DOMRectReadOnly Functions: - let make: ( ~x: float=?, ~y: float=?, ~width: float=?, ~height: float=?, ) => WebAPI.DOM.domRectReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) - let fromRect: ( ~other: WebAPI.DOM.domRectInit=?, ) => WebAPI.DOM.domRectReadOnly Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) - let toJSON: WebAPI.DOM.domRectReadOnly => Dict.t --- WebApiFile: src/html/HTMLAnchorElement.res Module: WebAPI.HTMLAnchorElement Types: - type t = { mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable target: string, mutable download: string, mutable ping: string, mutable rel: string, relList: WebAPI.DOM.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, } Description: 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](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) TODO: mark as private once mutating fields of private records is allowed Fields: - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - target: string - Sets or retrieves the window or frame at which to target content. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) - download: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) - ping: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) - rel: string - Sets or retrieves the relationship between the object and the destination of the link. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) - relList: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) - hreflang: string - Sets or retrieves the language code of the object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) - type_: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) - text: string - Retrieves or sets the text of the object as a string. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) - referrerPolicy: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) - href: string - Returns the hyperlink's URL. Can be set, to change the URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href) - origin: string - Returns the hyperlink's WebApiURL's origin. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin) - protocol: string - Returns the hyperlink's WebApiURL's scheme. Can be set, to change the WebApiURL's scheme. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol) - username: string - Returns the hyperlink's WebApiURL's username. Can be set, to change the WebApiURL's username. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username) - password: string - Returns the hyperlink's WebApiURL's password. Can be set, to change the WebApiURL's password. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password) - host: string - Returns the hyperlink's WebApiURL's host and port (if different from the default port for the scheme). Can be set, to change the WebApiURL's host and port. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host) - hostname: string - Returns the hyperlink's WebApiURL's host. Can be set, to change the WebApiURL's host. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname) - port: string - Returns the hyperlink's WebApiURL's port. Can be set, to change the WebApiURL's port. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port) - pathname: string - Returns the hyperlink's WebApiURL's path. Can be set, to change the WebApiURL's path. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname) - search: string - Returns the hyperlink's WebApiURL's query (includes leading "?" if non-empty). Can be set, to change the WebApiURL's query (ignores leading "?"). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search) - hash: string - Returns the hyperlink's WebApiURL's fragment (includes leading "#" if non-empty). Can be set, to change the WebApiURL's fragment (ignores leading "#"). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) --- WebApiFile: src/html/HTMLAreaElement.res Module: WebAPI.HTMLAreaElement Types: - type t = { mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable target: string, mutable ping: string, mutable rel: string, relList: WebAPI.DOM.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, } Description: 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 elements. [See HTMLAreaElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) TODO: mark as private once mutating fields of private records is allowed Fields: - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - target: string - Sets or retrieves the window or frame at which to target content. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) - ping: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) - rel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) - relList: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) - referrerPolicy: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) - href: string - Returns the hyperlink's URL. Can be set, to change the URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href) - origin: string - Returns the hyperlink's WebApiURL's origin. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin) - protocol: string - Returns the hyperlink's WebApiURL's scheme. Can be set, to change the WebApiURL's scheme. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol) - username: string - Returns the hyperlink's WebApiURL's username. Can be set, to change the WebApiURL's username. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username) - password: string - Returns the hyperlink's WebApiURL's password. Can be set, to change the WebApiURL's password. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password) - host: string - Returns the hyperlink's WebApiURL's host and port (if different from the default port for the scheme). Can be set, to change the WebApiURL's host and port. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host) - hostname: string - Returns the hyperlink's WebApiURL's host. Can be set, to change the WebApiURL's host. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname) - port: string - Returns the hyperlink's WebApiURL's port. Can be set, to change the WebApiURL's port. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port) - pathname: string - Returns the hyperlink's WebApiURL's path. Can be set, to change the WebApiURL's path. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname) - search: string - Returns the hyperlink's WebApiURL's query (includes leading "?" if non-empty). Can be set, to change the WebApiURL's query (ignores leading "?"). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search) - hash: string - Returns the hyperlink's WebApiURL's fragment (includes leading "#" if non-empty). Can be set, to change the WebApiURL's fragment (ignores leading "#"). [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) --- WebApiFile: src/html/HTMLBRElement.res Module: WebAPI.HTMLBRElement Types: - type t = private { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, } Description: A HTML line break element (
). It inherits from HTMLElement. [See HTMLBRElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) --- WebApiFile: src/html/HTMLBaseElement.res Module: WebAPI.HTMLBaseElement Types: - type t = { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable href: string, mutable target: string, } Description: 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](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) TODO: mark as private once mutating fields of private records is allowed Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - href: string - Gets or sets the baseline WebApiURL on which relative links are based. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) - target: string - Sets or retrieves the window or frame at which to target content. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) --- WebApiFile: src/html/HTMLBodyElement.res Module: WebAPI.HTMLBodyElement Types: - type t = private { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, } Description: Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating elements. [See HTMLBodyElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) Fields: - namespaceURI: Null.t - Returns the namespace. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - prefix: Null.t - Returns the namespace prefix. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/prefix) - localName: string - Returns the local name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/localName) - tagName: string - Returns the HTML-uppercased qualified name. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/tagName) - id: string - Returns the value of element's id content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/id) - className: string - Returns the value of element's class content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/className) - classList: WebAPI.DOM.domTokenList - Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/classList) - slot: string - Returns the value of element's slot content attribute. Can be set to change it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/slot) - attributes: WebAPI.DOM.namedNodeMap - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attributes) - shadowRoot: Null.t - Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - part: WebAPI.DOM.domTokenList - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/part) - scrollTop: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) - scrollLeft: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) - scrollWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) - scrollHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) - clientTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientTop) - clientLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) - clientWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) - clientHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) - currentCSSZoom: float - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) - innerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) - outerHTML: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) - nodeType: int - Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - nodeName: string - Returns a string appropriate for the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - baseURI: string - Returns node's node document's document base URL. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - isConnected: bool - Returns true if node is connected and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - ownerDocument: Null.t - Returns the node document. Returns null for documents. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - parentNode: Null.t - Returns the parent. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - parentElement: Null.t - Returns the parent element. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - childNodes: WebAPI.DOM.nodeList - Returns the children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - firstChild: Null.t - Returns the first child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - lastChild: Null.t - Returns the last child. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - previousSibling: Null.t - Returns the previous sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - nextSibling: Null.t - Returns the next sibling. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - nodeValue: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) - textContent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/textContent) - title: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) - lang: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) - translate: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) - dir: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) - inert: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) - accessKey: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) - accessKeyLabel: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) - draggable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) - spellcheck: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) - autocapitalize: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) - innerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) - outerText: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) - popover: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) - offsetParent: Null.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) - offsetTop: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) - offsetLeft: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) - offsetWidth: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) - offsetHeight: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) - style: WebAPI.CSSStyleDeclaration.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) - attributeStyleMap: WebAPI.StylePropertyMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) - contentEditable: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) - enterKeyHint: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) - isContentEditable: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) - inputMode: string - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) - dataset: WebAPI.DOMStringMap.t - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) - nonce: option - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) - autofocus: bool - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) - tabIndex: int - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) - type getRootNodeOptions = {mutable composed?: bool} Fields: - composed: option Functions: - let asEventTarget: t => WebAPI.DOM.eventTarget - let addEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.addEventListenerOptions=?, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let addEventListenerWithCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - let removeEventListener: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ~options: WebAPI.DOM.EventListener.options=?, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let removeEventListenerUseCapture: ( t, WebAPI.EventType.t, WebAPI.DOM.EventListener.t<'event>, ) => unit Description: Removes the event listener in target's event listener list with the same type, callback, and options. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - let dispatchEvent: (t, WebAPI.DOM.event) => bool Description: Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - let asNode: t => WebAPI.DOMTree.node - let getRootNode: (t, ~options: getRootNodeOptions=?) => WebAPI.DOMTree.node Description: Returns node's root. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - let hasChildNodes: t => bool Description: Returns whether node has children. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - let normalize: t => unit Description: Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize) - let cloneNode: (t, ~deep: bool=?) => t Description: Returns a copy of node. If deep is true, the copy also includes the node's descendants. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - let isEqualNode: (t, WebAPI.DOMTree.node) => bool Description: Returns whether node and otherNode have the same properties. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - let isSameNode: (t, WebAPI.DOMTree.node) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) - let compareDocumentPosition: (t, WebAPI.DOMTree.node) => int Description: Returns a bitmask indicating the position of other relative to node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - let contains: (t, WebAPI.DOMTree.node) => bool Description: Returns true if other is an inclusive descendant of node, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains) - let lookupPrefix: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) - let lookupNamespaceURI: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) - let isDefaultNamespace: (t, string) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) - let insertBefore: (t, 't, ~child: WebAPI.DOMTree.node) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) - let appendChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild) - let replaceChild: (t, ~node: WebAPI.DOMTree.node, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) - let removeChild: (t, 't) => 't Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild) - let asElement: t => WebAPI.DOMTree.element - let after: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let after2: (t, string) => unit Description: Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after) - let animate: ( t, ~keyframes: unknown, ~options: float=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let animate2: ( t, ~keyframes: unknown, ~options: WebAPI.Animation.keyframeAnimationOptions=?, ) => WebAPI.Animation.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate) - let append: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let append2: (t, string) => unit Description: Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append) - let attachShadow: (t, WebAPI.HTML.shadowRootInit) => WebAPI.DOMTree.shadowRoot Description: Creates a shadow root for element and returns it. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - let before: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let before2: (t, string) => unit Description: Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before) - let checkVisibility: (t, ~options: WebAPI.DOM.checkVisibilityOptions=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) - let closest: (t, string) => Null.t<'e> Description: Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest) - let computedStyleMap: t => WebAPI.StylePropertyMapReadOnly.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) - let getAnimations: ( t, ~options: WebAPI.AnimationEffect.getAnimationsOptions=?, ) => array Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) - let getAttribute: (t, string) => Null.t Description: Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - let getAttributeNames: t => array Description: Returns the qualified names of all element's attributes. Can contain duplicates. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - let getAttributeNode: (t, string) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) - let getAttributeNodeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) - let getAttributeNS: ( t, ~namespace: string, ~localName: string, ) => Null.t Description: Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - let getBoundingClientRect: t => WebAPI.DOM.domRect Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) - let getClientRects: t => WebAPI.DOM.domRectList Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) - let getElementsByClassName: ( t, string, ) => WebAPI.HTMLCollection.t Description: Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - let getElementsByTagName: ( t, string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) - let getElementsByTagNameNS: ( WebAPI.DOMTree.element, ~namespace: string, ~localName: string, ) => WebAPI.HTMLCollection.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) - let getHTML: (t, ~options: WebAPI.HTML.getHTMLOptions=?) => string Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML) - let hasAttribute: (t, string) => bool Description: Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - let hasAttributeNS: (t, ~namespace: string, ~localName: string) => bool Description: Returns true if element has an attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - let hasAttributes: t => bool Description: Returns true if element has attributes, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - let hasPointerCapture: (t, int) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) - let insertAdjacentElement: ( t, ~where: WebAPI.DOM.insertPosition, ~element: WebAPI.DOMTree.element, ) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) - let insertAdjacentHTML: ( t, ~position: WebAPI.DOM.insertPosition, ~string: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) - let insertAdjacentText: ( t, ~where: WebAPI.DOM.insertPosition, ~data: string, ) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) - let matches: (t, string) => bool Description: Returns true if matching selectors against element's root yields element, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches) - let prepend: (t, WebAPI.DOMTree.node) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let prepend2: (t, string) => unit Description: Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend) - let querySelector: (t, string) => Null.t Description: Returns the first element that is a descendant of node that matches selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - let querySelectorAll: (t, string) => WebAPI.DOM.nodeList Description: Returns all element descendants of node that match selectors. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - let releasePointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) - let remove: t => unit Description: Removes node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - let removeAttribute: (t, string) => unit Description: Removes element's first attribute whose qualified name is qualifiedName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - let removeAttributeNode: (t, WebAPI.Attr.t) => WebAPI.Attr.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) - let removeAttributeNS: (t, ~namespace: string, ~localName: string) => unit Description: Removes element's attribute whose namespace is namespace and local name is localName. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - let replaceChildren: (t, WebAPI.DOMTree.node) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceChildren2: (t, string) => unit Description: Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - let replaceWith: (t, WebAPI.DOMTree.node) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let replaceWith2: (t, string) => unit Description: Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - let requestFullscreen: ( t, ~options: WebAPI.DOM.fullscreenOptions=?, ) => promise Description: Displays element fullscreen and resolves promise when done. When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - let requestPointerLock: ( t, ~options: WebAPI.DOM.pointerLockOptions=?, ) => promise Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) - let scroll: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scroll2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll) - let scrollBy: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollBy2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) - let scrollIntoView: t => unit Description: `scrollIntoView()` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewAlignToTop: t => unit Description: `scrollIntoView(true)` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoView_alignToTop() ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollIntoViewWithOptions: (t, WebAPI.DOM.scrollIntoViewOptions) => unit Description: `scrollIntoView({ behavior: "smooth" })` Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) - let scrollTo: (t, ~options: WebAPI.DOM.scrollToOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let scrollTo2: (t, ~x: float, ~y: float) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) - let setAttribute: (t, ~qualifiedName: string, ~value: string) => unit Description: Sets the value of element's first attribute whose qualified name is qualifiedName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - let setAttributeNode: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) - let setAttributeNodeNS: (t, WebAPI.Attr.t) => Null.t Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) - let setAttributeNS: ( t, ~namespace: string, ~qualifiedName: string, ~value: string, ) => unit Description: Sets the value of element's attribute whose namespace is namespace and local name is localName to value. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - let setHTMLUnsafe: (t, string) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) - let setPointerCapture: (t, int) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) - let toggleAttribute: (t, ~qualifiedName: string, ~force: bool=?) => bool Description: If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. Returns true if qualifiedName is now present, and false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - let asHTMLElement: t => WebAPI.DOMTree.htmlElement - let hidden: t => \"HTMLElement-WebAPI".hiddenState Description: Returns the element's current hidden state. ```rescript let description = switch element->HTMLElement.hidden { | HTMLElement.Visible => "visible" | HTMLElement.Hidden => "hidden" | HTMLElement.HiddenUntilFound => "hidden until found" } ``` This getter never returns `null`. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let setHidden: (t, \"HTMLElement-WebAPI".hiddenState) => unit Description: Sets the element's semantic hidden state. ```rescript element->HTMLElement.setHidden(HTMLElement.Hidden) element->HTMLElement.setHidden(HTMLElement.HiddenUntilFound) element->HTMLElement.setHidden(HTMLElement.Visible) ``` The browser also accepts values such as numbers, arbitrary strings, `null`, and `undefined`, but coerces each of them to one of these three states. This binding intentionally accepts only `hiddenState` so callers express the resulting state rather than relying on coercion. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) - let attachInternals: t => WebAPI.DOMTree.elementInternals Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) - let blur: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) - let click: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) - let focus: (t, ~options: WebAPI.DOM.focusOptions=?) => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) - let hidePopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) - let showPopover: t => unit Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) - let togglePopover: (t, ~force: bool=?) => bool Description: [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) --- WebApiFile: src/html/HTMLButtonElement.res Module: WebAPI.HTMLButtonElement Types: - type t = { namespaceURI: Null.t, prefix: Null.t, localName: string, tagName: string, mutable id: string, mutable className: string, classList: WebAPI.DOM.domTokenList, mutable slot: string, attributes: WebAPI.DOM.namedNodeMap, shadowRoot: Null.t, part: WebAPI.DOM.domTokenList, mutable scrollTop: float, mutable scrollLeft: float, scrollWidth: int, scrollHeight: int, clientTop: int, clientLeft: int, clientWidth: int, clientHeight: int, currentCSSZoom: float, mutable innerHTML: string, mutable outerHTML: string, nodeType: int, nodeName: string, baseURI: string, isConnected: bool, ownerDocument: Null.t, parentNode: Null.t, parentElement: Null.t, childNodes: WebAPI.DOM.nodeList, firstChild: Null.t, lastChild: Null.t, previousSibling: Null.t, nextSibling: Null.t, mutable nodeValue: Null.t, mutable textContent: Null.t, mutable title: string, mutable lang: string, mutable translate: bool, mutable dir: string, 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, offsetParent: Null.t, offsetTop: int, offsetLeft: int, offsetWidth: int, offsetHeight: int, style: WebAPI.CSSStyleDeclaration.t, attributeStyleMap: WebAPI.StylePropertyMap.t, mutable contentEditable: string, mutable enterKeyHint: string, isContentEditable: bool, mutable inputMode: string, dataset: WebAPI.DOMStringMap.t, mutable nonce?: string, mutable autofocus: bool, mutable tabIndex: int, mutable disabled: bool, form: Null.t, mutable formAction: string, mutable formEnctype: string, mutable formMethod: string, mutable name: string, mutable type_: string, mutable value: string, willValidate: bool, validity: WebAPI.DOM.validityState, validationMessage: string, labels: WebAPI.DOM.nodeList, mutable popoverTargetElement: Null.t< WebAPI.DOMTree.element, >, mutable popoverTargetAction: string, } Description: Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating