tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* [PATCH] cgi.c: label query and manpath
@ 2022-07-06 15:52 Anna Vyalkova
  2022-07-06 17:40 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Anna Vyalkova @ 2022-07-06 15:52 UTC (permalink / raw)
  To: tech

---

Is visible label OK? Or should it be hidden?

 cgi.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cgi.c b/cgi.c
index a6cacd02..75e91ba1 100644
--- a/cgi.c
+++ b/cgi.c
@@ -444,7 +444,8 @@ resp_searchform(const struct req *req, enum focus focus)
 
 	/* Write query input box. */
 
-	printf("    <input type=\"search\" name=\"query\" value=\"");
+	puts("    <label for=\"query\">Search query</label>");
+	printf("    <input type=\"search\" name=\"query\" id=\"query\" value=\"");
 	if (req->q.query != NULL)
 		html_print(req->q.query);
 	printf( "\" size=\"40\"");
@@ -491,7 +492,7 @@ resp_searchform(const struct req *req, enum focus focus)
 	/* Write manpath selector. */
 
 	if (req->psz > 1) {
-		puts("    <select name=\"manpath\">");
+		puts("    <select name=\"manpath\" aria-label=\"manual path\">");
 		for (i = 0; i < (int)req->psz; i++) {
 			printf("      <option");
 			if (strcmp(req->q.manpath, req->p[i]) == 0)
-- 
2.35.1

--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-06 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 15:52 [PATCH] cgi.c: label query and manpath Anna Vyalkova
2022-07-06 17:40 ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).