kotlinx.html
kotlinx.html copied to clipboard
Wrong type of autocomplete in input tag
trafficstars
Currently, autoComplete variable of input tag has Boolean type and doesn't support for any other values such as "new-password" or "nickname" except for "on" and "off".
I suppose you better use enum for this.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
In addition it should be named autocomplete instead of autoComplete because the corresponding attribute is named autocomplete and not auto-complete.
Using the hyphen for deciding where to camelCase is a typical convention that most JS libraries use.
It's also readonly instead of readOnly already.
But autoFocus should be autofocus.