API / Dom

You are currently looking at the v6.0 - v8.2 docs (Reason v3.6 syntax edition). You can find the latest API docs here.

(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)

Dom

The Dom module offers a canonical set of dom related types that third party libraries can depend on. It only provides types, no functions to manipulate the values of certain types whatsoever.

animation

RE
type animation

cssStyleDeclaration

RE
type cssStyleDeclaration

cssStyleSheet

RE
type cssStyleSheet

node

RE
type node

characterData

RE
type characterData

cdataSection

RE
type cdataSection

comment

RE
type comment

document

RE
type document

documentType

RE
type documentType

domImplementation

RE
type domImplementation

element

RE
type element

htmlCollection

RE
type htmlCollection

htmlFormControlsCollection

RE
type htmlFormControlsCollection

htmlOptionsCollection

RE
type htmlOptionsCollection

intersectionObserver

RE
type intersectionObserver

intersectionObserverEntry

RE
type intersectionObserverEntry

mutationObserver

RE
type mutationObserver

mutationRecord

RE
type mutationRecord

performanceObserver

RE
type performanceObserver

performanceObserverEntryList

RE
type performanceObserverEntryList

reportingObserver

RE
type reportingObserver

reportingObserverOptions

RE
type reportingObserverOptions

resizeObserver

RE
type resizeObserver

resizeObserverEntry

RE
type resizeObserverEntry

namedNodeMap

RE
type namedNodeMap

nodeList

RE
type nodeList

radioNodeList

RE
type radioNodeList

processingInstruction

RE
type processingInstruction

shadowRoot

RE
type shadowRoot

text

RE
type text

domRect

RE
type domRect

dataTransfer

RE
type dataTransfer

domStringMap

RE
type domStringMap

history

RE
type history

htmlDocument

RE
type htmlDocument

htmlElement

RE
type htmlElement

htmlAnchorElement

RE
type htmlAnchorElement

htmlAreaElement

RE
type htmlAreaElement

htmlAudioElement

RE
type htmlAudioElement

htmlBaseElement

RE
type htmlBaseElement

htmlBodyElement

RE
type htmlBodyElement

htmlBrElement

RE
type htmlBrElement

htmlButtonElement

RE
type htmlButtonElement

htmlCanvasElement

RE
type htmlCanvasElement

htmlDataElement

RE
type htmlDataElement

htmlDataListElement

RE
type htmlDataListElement

htmlDialogElement

RE
type htmlDialogElement

htmlDivElement

RE
type htmlDivElement

htmlDlistElement

RE
type htmlDlistElement

htmlEmbedElement

RE
type htmlEmbedElement

htmlFieldSetElement

RE
type htmlFieldSetElement

htmlFormElement

RE
type htmlFormElement

htmlHeadElement

RE
type htmlHeadElement

htmlHeadingElement

RE
type htmlHeadingElement

htmlHrElement

RE
type htmlHrElement

htmlHtmlElement

RE
type htmlHtmElement

htmlIframeElement

RE
type htmlIframeElement

htmlImageElement

RE
type htmlImageElement

htmlInputElement

RE
type htmlInputElement

htmlLabelElement

RE
type htmlLabelElement

htmlLegendElement

RE
type htmlLegendElement

htmlLiElement

RE
type htmlLiElement

htmlLinkElement

RE
type htmlLinkElement

htmlMapElement

RE
type htmlMapElement

htmlMediaElement

RE
type htmlMediaElement

htmlMenuElement

RE
type htmlMenuElement

htmlMetaElement

RE
type htmlMetaElement

htmlMeterElement

RE
type htmlMeterElement

htmlModElement

RE
type htmlModElement

htmlOListElement

RE
type htmlOListElement

htmlObjectElement

RE
type htmlObjectElement

htmlOptGroupElement

RE
type htmlOptGroupElement

htmlOptionElement

RE
type htmlOptionElement

htmlOutputElement

RE
type htmlOutputElement

htmlParagraphElement

RE
type htmlParagraphElement

htmlParamElement

RE
type htmlParamElement

htmlPreElement

RE
type htmlPreElement

htmlProgressElement

RE
type htmlProgressElement

htmlQuoteElement

RE
type htmlQuoteElement

htmlScriptElement

RE
type htmlScriptElement

htmlSelectElement

RE
type htmlSelectElement

htmlSlotElement

RE
type htmlSlotElement

htmlSourceElement

RE
type htmlSourceElement

htmlSpanElement

RE
type htmlSpanElement

htmlStyleElement

RE
type htmlStyleElement

htmlTableCaptionElement

RE
type htmlTableCaptionElement

htmlTableCellElement

RE
type htmlTableCellElement

htmlTableColElement

RE
type htmlTableColElement

htmlTableDataCellElement

RE
type htmlTableDataCellElement

htmlTableElement

RE
type htmlTableElement

htmlTableHeaderCellElement

RE
type htmlTableHeaderCellElement

htmlTableRowElement

RE
type htmlTableRowElement

htmlTableSectionElement

RE
type htmlTableSectionElement

htmlTextAreaElement

RE
type htmlTextAreaElement

htmlTimeElement

RE
type htmlTimeElement

htmlTitleElement

RE
type htmlTitleElement

htmlTrackElement

RE
type htmlTrackElement

htmlUlistElement

RE
type htmlUlistElement

htmlUnknownElement

RE
type htmlUnknownElement

htmlVideoElement

RE
type htmlVideoElement

location

RE
type location

window

RE
type window

xmlDocument

RE
type xmlDocument

event

RE
type event

uiEvent

RE
type uiEvent

animationEvent

RE
type animationEvent

beforeUnloadEvent

RE
type beforeUnloadEvent

clipboardEvent

RE
type clipboardEvent

closeEvent

RE
type closeEvent

compositionEvent

RE
type compositionEvent

customEvent

RE
type customEvent

dragEvent

RE
type dragEvent

errorEvent

RE
type errorEvent

focusEvent

RE
type focusEvent

idbVersionChangeEvent

RE
type idbVersionChangeEvent

inputEvent

RE
type inputEvent

keyboardEvent

RE
type keyboardEvent

mouseEvent

RE
type mouseEvent

pageTransitionEvent

RE
type pageTransitionEvent

pointerEvent

RE
type pointerEvent

popStateEvent

RE
type popStateEvent

progressEvent

RE
type progressEvent

relatedEvent

RE
type relatedEvent

storageEvent

RE
type storageEvent

svgZoomEvent

RE
type svgZoomEvent

timeEvent

RE
type timeEvent

touchEvent

RE
type touchEvent

trackEvent

RE
type trackEvent

transitionEvent

RE
type transitionEvent

webGlContextEvent

RE
type webGlContextEvent

wheelEvent

RE
type wheelEvent

range

RE
type range

selection

RE
type selection

domTokenList

RE
type domTokenList

domSettableTokenList

RE
type domSettableTokenList

nodeFilter

RE
type nodeFilter = { acceptNode: (Dom.element) => int }

nodeIterator

RE
type nodeIterator

treeWalker

RE
type treeWalker

svgRect

RE
type svgRect

svgPoint

RE
type svgPoint

eventPointerId

RE
type eventPointerId