bootstrap-flask
bootstrap-flask copied to clipboard
Actively withholding placeholders
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.
Perhaps also log a warning for these situations when Flask is running in debug mode.
@greyli is this also a feature request for wrforms?
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