bootstrap-flask icon indicating copy to clipboard operation
bootstrap-flask copied to clipboard

Question kwargs without value

Open PanderMusubi opened this issue 2 years ago • 1 comments

A question for usage of kwargs, how to add a key without a value such as https://www.w3schools.com/tags/att_input_autofocus.asp Will add example usage to the example application when I have the answer.

PanderMusubi avatar Dec 21 '21 10:12 PanderMusubi

Should this be done with wtforms.fields.Flags from https://wtforms.readthedocs.io/en/master/fields/ ?

PanderMusubi avatar Dec 31 '21 13:12 PanderMusubi

Passing autofocus="autofocus" is the correct usage.

https://www.w3.org/TR/html5/infrastructure.html#boolean-attributes

greyli avatar Aug 20 '22 09:08 greyli