aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-07-06 16:05:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-07-06 16:05:40 +0000
commit45e74416dac588344a02622e7c0a76a4cbde2b95 (patch)
tree486ff815903c05ca7ca13d107c55a8ab04593483 /cgi.c
parente50d7a20cff8283cdc0c411da7b429708a6a62e3 (diff)
downloadmandoc-45e74416dac588344a02622e7c0a76a4cbde2b95.tar.gz
mandoc-45e74416dac588344a02622e7c0a76a4cbde2b95.tar.zst
mandoc-45e74416dac588344a02622e7c0a76a4cbde2b95.zip
https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/ says:
"Start names with a capital letter; it helps some screen readers speak them with appropriate inflection." Anna Vyalkova already did that correctly when sending patches, but i ruined it when committing, so fix it now.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi.c b/cgi.c
index 271f9b0a..421cb9bd 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.178 2022/07/05 14:04:25 schwarze Exp $ */
+/* $Id: cgi.c,v 1.179 2022/07/06 16:05:40 schwarze Exp $ */
/*
* Copyright (c) 2014-2019, 2021, 2022 Ingo Schwarze <schwarze@usta.de>
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -462,7 +462,7 @@ resp_searchform(const struct req *req, enum focus focus)
/* Write section selector. */
- puts(" <select name=\"sec\" aria-label=\"manual section\">");
+ puts(" <select name=\"sec\" aria-label=\"Manual section\">");
for (i = 0; i < sec_MAX; i++) {
printf(" <option value=\"%s\"", sec_numbers[i]);
if (NULL != req->q.sec &&
@@ -564,7 +564,7 @@ pg_index(const struct req *req)
resp_searchform(req, FOCUS_QUERY);
printf("</header>\n"
"<main>\n"
- "<p role=\"doc-notice\" aria-label=\"usage\">\n"
+ "<p role=\"doc-notice\" aria-label=\"Usage\">\n"
"This web interface is documented in the\n"
"<a class=\"Xr\" href=\"/%s%sman.cgi.8\""
" aria-label=\"man dot CGI, section 8\">man.cgi(8)</a>\n"
@@ -588,7 +588,7 @@ pg_noresult(const struct req *req, int code, const char *http_msg,
resp_searchform(req, FOCUS_QUERY);
puts("</header>");
puts("<main>");
- puts("<p role=\"doc-notice\" aria-label=\"no result\">");
+ puts("<p role=\"doc-notice\" aria-label=\"No result\">");
puts(user_msg);
puts("</p>");
puts("</main>");