Open
Description
If I write an html form with a checkbox that has no explicit value
attribute then when the checkbox is checked by the user the browser will send the string "on" in the form data. However, the string "on" is not recognized by strconv.ParseBool
and I get a parse error. It would be nice if this library handled this case.
I realize that I can work around this by setting value="true"
in my HTML form but I was wondering whether you would consider making that unnecessary by processing the string "on" as true when parsing booleans.
Metadata
Assignees
Labels
No labels
Activity