diff options
| author | 2026-03-17 19:59:21 +0100 | |
|---|---|---|
| committer | 2026-03-17 19:59:21 +0100 | |
| commit | f71a0a7f2070da8ed99fa8b02c50ab85006eb788 (patch) | |
| tree | 3d635f6d7ca958cae99f0b462def696102ce0bc3 | |
| parent | Call ulimit -n to increase file descriptors in examples/snac_netbsd. (diff) | |
| parent | fix: broken <label> tags in html_checkbox() (diff) | |
| download | snac2-f71a0a7f2070da8ed99fa8b02c50ab85006eb788.tar.gz snac2-f71a0a7f2070da8ed99fa8b02c50ab85006eb788.tar.xz snac2-f71a0a7f2070da8ed99fa8b02c50ab85006eb788.zip | |
Merge pull request 'Fixed missing `id` attribute in `html_checkbox()`' (#585) from dandelions/snac2:pr-checkbox-id-attr into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/585
| -rw-r--r-- | html.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1451,6 +1451,7 @@ xs_html *html_checkbox(const char *form_name, const char *label, int flag) | |||
| 1451 | xs_html_sctag("input", | 1451 | xs_html_sctag("input", |
| 1452 | xs_html_attr("type", "checkbox"), | 1452 | xs_html_attr("type", "checkbox"), |
| 1453 | xs_html_attr("name", form_name), | 1453 | xs_html_attr("name", form_name), |
| 1454 | xs_html_attr("id", form_name), | ||
| 1454 | xs_html_attr(flag ? "checked" : "", NULL)), | 1455 | xs_html_attr(flag ? "checked" : "", NULL)), |
| 1455 | xs_html_tag("label", | 1456 | xs_html_tag("label", |
| 1456 | xs_html_attr("for", form_name), | 1457 | xs_html_attr("for", form_name), |