xmlet / HtmlApiFaster

HtmlApiFaster is an alternative to HtmlApi, which uses XsdAsmFaster instead of XsdAsm in order to increase performance.
MIT License
7 stars 1 forks source link

Missing values for Input#autocomplete #7

Open benjamin-dreux opened 6 days ago

benjamin-dreux commented 6 days ago

Accoriding to https://www.w3schools.com/tags/att_input_autocomplete.asp There is now a LOT of possible values for the attribute autocomplete of input.

But most of them are missing, in EnumAutocomplete see https://javadoc.io/doc/com.github.xmlet/htmlApiFaster/latest/org/xmlet/htmlapifaster/EnumAutocompleteType.html

benjamin-dreux commented 6 days ago

According to: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

The attribute value is either the keyword off or on, or a space-separated <token-list> that describes the meaning of the autocompletion value.

So the Enum is complete, in the sense that it provide all normal values. But we need another signature for attrAutocomplete to provide alternative values.

Another option could be to accept the api as is and to recommend using addAttr to compensate. In this case it would be normal to add a comment regarding this use case on the attrAutocomplete javadoc