commit f71a0a7
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
1 files changed,
+1,
-0
M
html.c
M
html.c
+1,
-0
1@@ -1451,6 +1451,7 @@ xs_html *html_checkbox(const char *form_name, const char *label, int flag)
2 xs_html_sctag("input",
3 xs_html_attr("type", "checkbox"),
4 xs_html_attr("name", form_name),
5+ xs_html_attr("id", form_name),
6 xs_html_attr(flag ? "checked" : "", NULL)),
7 xs_html_tag("label",
8 xs_html_attr("for", form_name),