You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 bystrconv.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.The text was updated successfully, but these errors were encountered: