I often find little things missing in the JS API. ...
# javascript
b
I often find little things missing in the JS API. I would do something like this:
Copy code
val HTMLInputElement.selectionStart: Int
    get() = definedExternally
    set(newValue) = definedExternally

val HTMLInputElement.selectionEnd: Int
    get() = definedExternally
    set(newValue) = definedExternally
After you put this somewhere in your codebase, please file a bug here: https://youtrack.jetbrains.com/issues/KT