commit 2ef105c

green  ·  2026-03-17 18:16:31 +0000 UTC
parent f1bdb50
fix: broken <label> tags in html_checkbox()
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),