Set some HTML url fields to be type 'url'.

This commit is contained in:
default 2024-10-29 20:22:49 +01:00
parent c10449364b
commit 6a7881ec85

4
html.c
View file

@ -355,7 +355,7 @@ xs_html *html_note(snac *user, const char *summary,
xs_html_tag("p", NULL), xs_html_tag("p", NULL),
xs_html_text(L("Reply to (URL): ")), xs_html_text(L("Reply to (URL): ")),
xs_html_sctag("input", xs_html_sctag("input",
xs_html_attr("type", "text"), xs_html_attr("type", "url"),
xs_html_attr("name", "in_reply_to"), xs_html_attr("name", "in_reply_to"),
xs_html_attr("placeholder", "Optional URL to reply to"))); xs_html_attr("placeholder", "Optional URL to reply to")));
@ -959,7 +959,7 @@ xs_html *html_top_controls(snac *snac)
xs_html_attr("method", "post"), xs_html_attr("method", "post"),
xs_html_attr("action", ops_action), xs_html_attr("action", ops_action),
xs_html_sctag("input", xs_html_sctag("input",
xs_html_attr("type", "text"), xs_html_attr("type", "url"),
xs_html_attr("name", "id"), xs_html_attr("name", "id"),
xs_html_attr("required", "required"), xs_html_attr("required", "required"),
xs_html_attr("placeholder", "https:/" "/fedi.example.com/bob/...")), xs_html_attr("placeholder", "https:/" "/fedi.example.com/bob/...")),