rescript-webapi
Advanced tools
Changelog
0.10.0
getPropertyValue
for CSS style attributes (it's nullable and now returns an option).DomTokenList.toggleForced
to accept a boolean, denoting whether to toggle the class on or off. https://github.com/TheSpyder/rescript-webapi/pull/136VisualViewport
bindings. https://github.com/TheSpyder/rescript-webapi/pull/137Path2d
is now a separate module from Canvas2d
, with more complete bindings https://github.com/TheSpyder/rescript-webapi/pull/133Window.getComputedStyle
, allowing subclasses of Element (such as HtmlElement).Changelog
0.9.1
_
variable mangling. https://github.com/TheSpyder/rescript-webapi/pull/129Changelog
0.9.0
selectionStart
and selectionEnd
for input
and textarea
elements. https://github.com/TheSpyder/rescript-webapi/pull/124Changelog
0.8.0
OffscreenCanvas
bindings. https://github.com/TheSpyder/rescript-webapi/pull/119Url.toJSON()
was emitting the wrong function name. https://github.com/TheSpyder/rescript-webapi/pull/121options
signature in Webapi.Dom.CustomEvent
's makeWithOption
. https://github.com/TheSpyder/rescript-webapi/pull/122Changelog
0.7.0
Url.createObjectURLFromBlob
binding that takes a Blob.t
. https://github.com/TheSpyder/rescript-webapi/pull/106returnValue
setter for BeforeUnloadEvent
. https://github.com/TheSpyder/rescript-webapi/pull/110Webapi.FormData.makeWithHtmlForm
binding that takes a Webapi.Dom.HtmlFormElement.t
. https://github.com/TheSpyder/rescript-webapi/pull/108Canvas.toBlob
& Canvas.toDataUrl
methods, with multiple argument variants. https://github.com/TheSpyder/rescript-webapi/pull/111Dom.CssStyleDeclaration.setPropertyValue
was emitting the wrong function name. https://github.com/TheSpyder/rescript-webapi/pull/114Changelog
0.6.1
detail
fields. https://github.com/TheSpyder/rescript-webapi/pull/93Changelog
0.5.0
Node
APIs do not trigger compile errors due to the argument swap, because both arguments were Node
instances. This logic error can cause severe migration headaches; the following methods had named arguments added to highlight places migration is necessary. https://github.com/TheSpyder/rescript-webapi/pull/89
appendChild
compareDocumentPosition
contains
insertBefore
removeChild
replaceChild
History.scrollRestoration
to use auto
and manual
instead of a boolean. https://github.com/TheSpyder/rescript-webapi/pull/88PopStateEvent.state
now returns a history state type instead of an open object. https://github.com/TheSpyder/rescript-webapi/pull/88InputEvent.data
to return a nullable value. https://github.com/TheSpyder/rescript-webapi/pull/90Canvas2d
bindings drawImage
, drawImageScale
, and drawImageFull
added. https://github.com/TheSpyder/rescript-webapi/pull/83InputEvent
bindings for inputType
, dataTransfer
and getTargetRanges
. https://github.com/TheSpyder/rescript-webapi/pull/90Node.insertAtEnd
binding (which does parent.insertBefore(child, null)
). https://github.com/TheSpyder/rescript-webapi/pull/89Node.isSameNode
(MDN recommends using ===
instead). https://github.com/TheSpyder/rescript-webapi/pull/89Changelog
0.4.1
HTMLFormControlsCollection
, HTMLOptionsCollection
, HTMLFieldSetElement
, Document.forms
, HTMLFormElement.elements
, HTMLObjectElement
, HTMLOptGroupElement
, HTMLOptionElement
, HTMLOutputElement
, HTMLSelectElement
, HTMLTextAreaElement
, and RadioNodeList
bindings. https://github.com/TheSpyder/rescript-webapi/pull/73