TheSpyder / rescript-webapi

ReScript bindings to the DOM and other Web APIs
http://tinymce.github.io/rescript-webapi/api/Webapi/
Other
149 stars 36 forks source link

fix: make selectionStart/End nullable #124

Closed XiNiHa closed 1 year ago

XiNiHa commented 1 year ago

Although the behavior is very inconsistent between browsers and situations, selectionStart and selectionEnd of HTMLInputElement and HTMLTextAreaElement are actually nullable. This PR fixes their type definitions to match reality.