API / Dom

You are currently looking at the < v8.2.0 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

type animation

cssStyleDeclaration

type cssStyleDeclaration

cssStyleSheet

type cssStyleSheet

node

type node

characterData

type characterData

cdataSection

type cdataSection

comment

type comment

document

type document

documentType

type documentType

domImplementation

type domImplementation

element

type element

htmlCollection

type htmlCollection

htmlFormControlsCollection

type htmlFormControlsCollection

htmlOptionsCollection

type htmlOptionsCollection

intersectionObserver

type intersectionObserver

intersectionObserverEntry

type intersectionObserverEntry

mutationObserver

type mutationObserver

mutationRecord

type mutationRecord

performanceObserver

type performanceObserver

performanceObserverEntryList

type performanceObserverEntryList

reportingObserver

type reportingObserver

reportingObserverOptions

type reportingObserverOptions

resizeObserver

type resizeObserver

resizeObserverEntry

type resizeObserverEntry

namedNodeMap

type namedNodeMap

nodeList

type nodeList

radioNodeList

type radioNodeList

processingInstruction

type processingInstruction

shadowRoot

type shadowRoot

text

type text

domRect

type domRect

dataTransfer

type dataTransfer

domStringMap

type domStringMap

history

type history

htmlDocument

type htmlDocument

htmlElement

type htmlElement

htmlAnchorElement

type htmlAnchorElement

htmlAreaElement

type htmlAreaElement

htmlAudioElement

type htmlAudioElement

htmlBaseElement

type htmlBaseElement

htmlBodyElement

type htmlBodyElement

htmlBrElement

type htmlBrElement

htmlButtonElement

type htmlButtonElement

htmlCanvasElement

type htmlCanvasElement

htmlDataElement

type htmlDataElement

htmlDataListElement

type htmlDataListElement

htmlDialogElement

type htmlDialogElement

htmlDivElement

type htmlDivElement

htmlDlistElement

type htmlDlistElement

htmlEmbedElement

type htmlEmbedElement

htmlFieldSetElement

type htmlFieldSetElement

htmlFormElement

type htmlFormElement

htmlHeadElement

type htmlHeadElement

htmlHeadingElement

type htmlHeadingElement

htmlHrElement

type htmlHrElement

htmlHtmlElement

type htmlHtmElement

htmlIframeElement

type htmlIframeElement

htmlImageElement

type htmlImageElement

htmlInputElement

type htmlInputElement

htmlLabelElement

type htmlLabelElement

htmlLegendElement

type htmlLegendElement

htmlLiElement

type htmlLiElement

htmlLinkElement

type htmlLinkElement

htmlMapElement

type htmlMapElement

htmlMediaElement

type htmlMediaElement

htmlMenuElement

type htmlMenuElement

htmlMetaElement

type htmlMetaElement

htmlMeterElement

type htmlMeterElement

htmlModElement

type htmlModElement

htmlOListElement

type htmlOListElement

htmlObjectElement

type htmlObjectElement

htmlOptGroupElement

type htmlOptGroupElement

htmlOptionElement

type htmlOptionElement

htmlOutputElement

type htmlOutputElement

htmlParagraphElement

type htmlParagraphElement

htmlParamElement

type htmlParamElement

htmlPreElement

type htmlPreElement

htmlProgressElement

type htmlProgressElement

htmlQuoteElement

type htmlQuoteElement

htmlScriptElement

type htmlScriptElement

htmlSelectElement

type htmlSelectElement

htmlSlotElement

type htmlSlotElement

htmlSourceElement

type htmlSourceElement

htmlSpanElement

type htmlSpanElement

htmlStyleElement

type htmlStyleElement

htmlTableCaptionElement

type htmlTableCaptionElement

htmlTableCellElement

type htmlTableCellElement

htmlTableColElement

type htmlTableColElement

htmlTableDataCellElement

type htmlTableDataCellElement

htmlTableElement

type htmlTableElement

htmlTableHeaderCellElement

type htmlTableHeaderCellElement

htmlTableRowElement

type htmlTableRowElement

htmlTableSectionElement

type htmlTableSectionElement

htmlTextAreaElement

type htmlTextAreaElement

htmlTimeElement

type htmlTimeElement

htmlTitleElement

type htmlTitleElement

htmlTrackElement

type htmlTrackElement

htmlUlistElement

type htmlUlistElement

htmlUnknownElement

type htmlUnknownElement

htmlVideoElement

type htmlVideoElement

location

type location

window

type window

xmlDocument

type xmlDocument

event

type event

uiEvent

type uiEvent

animationEvent

type animationEvent

beforeUnloadEvent

type beforeUnloadEvent

clipboardEvent

type clipboardEvent

closeEvent

type closeEvent

compositionEvent

type compositionEvent

customEvent

type customEvent

dragEvent

type dragEvent

errorEvent

type errorEvent

focusEvent

type focusEvent

idbVersionChangeEvent

type idbVersionChangeEvent

inputEvent

type inputEvent

keyboardEvent

type keyboardEvent

mouseEvent

type mouseEvent

pageTransitionEvent

type pageTransitionEvent

pointerEvent

type pointerEvent

popStateEvent

type popStateEvent

progressEvent

type progressEvent

relatedEvent

type relatedEvent

storageEvent

type storageEvent

svgZoomEvent

type svgZoomEvent

timeEvent

type timeEvent

touchEvent

type touchEvent

trackEvent

type trackEvent

transitionEvent

type transitionEvent

webGlContextEvent

type webGlContextEvent

wheelEvent

type wheelEvent

range

type range

selection

type selection

domTokenList

type domTokenList

domSettableTokenList

type domSettableTokenList

nodeFilter

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

nodeIterator

type nodeIterator

treeWalker

type treeWalker

svgRect

type svgRect

svgPoint

type svgPoint

eventPointerId

type eventPointerId