kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Wrong type of autocomplete in input tag

Open Nourepide opened this issue 5 years ago • 2 comments
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

Nourepide avatar May 02 '20 13:05 Nourepide

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.

fluidsonic avatar Oct 18 '20 15:10 fluidsonic