rescript-webapi icon indicating copy to clipboard operation
rescript-webapi copied to clipboard

Unwind HtmlFormElement and improve the FormData API

Open TheSpyder opened this issue 2 years ago • 0 comments

There are two main problems with Webapi__Dom__HtmlFormElement:

  • It uses the Impl pattern but is never included by other files
  • It defines a data function to create a FormData object, which is both a weird name for the constructor and a weird place to put it

The first is an easy fix; just move all the bindings to the end of the file and delete the Impl module.

For the second, just delete data and re-do #108 (which was reverted after I discovered this).

TheSpyder avatar Nov 04 '22 00:11 TheSpyder