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

Actively withholding placeholders

Open PanderMusubi opened this issue 2 years ago • 3 comments

Do we want to actively want to withhold placeholders for BooleanField etc where they only result in W3C validation errors? As they are never useful for these kind of input types.

See also https://github.com/greyli/bootstrap-flask/pull/181/commits/60c7f5a57ca94bf7ca6c31377c9617a7f2d13d59#diff-ca81977f24b927fa965a91c8be54e47056fa6c59e8acbfeb2f2754217a94dc7eR87

Note, this discussion is not concerning placeholders for DateTimeField fields.

PanderMusubi avatar Nov 23 '21 09:11 PanderMusubi

Perhaps also log a warning for these situations when Flask is running in debug mode.

PanderMusubi avatar Nov 23 '21 10:11 PanderMusubi

@greyli is this also a feature request for wrforms?

PanderMusubi avatar Jan 27 '22 12:01 PanderMusubi

See also https://validator.w3.org/nu/?doc=http%3A%2F%2F173.212.198.217%2Fform and https://validator.w3.org/nu/?doc=http%3A%2F%2F173.212.227.186%2Fform

PanderMusubi avatar Aug 27 '22 12:08 PanderMusubi