headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.49k stars 160 forks source link

`form.Check` does not set form value correctly #84

Open tiziano88 opened 6 years ago

tiziano88 commented 6 years ago

From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

If the value attribute was omitted, the default value for the checkbox is on , so the submitted data in that case would be subscribe=on.

Currently surf sets it to empty string when calling Check in this case.