summaryrefslogtreecommitdiffstats
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
commit655bab118450e497db31f6a97e160a70b360167d (patch)
tree1be9a40c8de4230d9ec3d3832ba71e6cd4605e63
parent86b29a940ed5f29ec1351a37872eb5a4e0175dc3 (diff)
downloadmandoc-655bab118450e497db31f6a97e160a70b360167d.tar.gz
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.
-rw-r--r--cgi.c6
-rw-r--r--man_html.c4
-rw-r--r--mdoc_html.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/cgi.c b/cgi.c
index a6cacd02..1ce5cda4 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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>");
diff --git a/man_html.c b/man_html.c
index 3c0078a8..f931dcb9 100644
--- a/man_html.c
+++ b/man_html.c
@@ -271,7 +271,7 @@ man_root_pre(const struct roff_meta *man, struct html *h)
mandoc_asprintf(&title, "%s(%s)", man->title, man->msec);
t = print_otag(h, TAG_DIV, "cr?", "head", "doc-pageheader",
- "aria-label", "manual header line");
+ "aria-label", "Manual header line");
print_otag(h, TAG_SPAN, "c", "head-ltitle");
print_text(h, title);
@@ -294,7 +294,7 @@ man_root_post(const struct roff_meta *man, struct html *h)
struct tag *t;
t = print_otag(h, TAG_DIV, "cr?", "foot", "doc-pagefooter",
- "aria-label", "manual footer line");
+ "aria-label", "Manual footer line");
print_otag(h, TAG_SPAN, "c", "foot-left");
print_stagq(h, t);
diff --git a/mdoc_html.c b/mdoc_html.c
index 4e2eeefa..7dab43e7 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -456,7 +456,7 @@ mdoc_root_post(const struct roff_meta *meta, struct html *h)
struct tag *t;
t = print_otag(h, TAG_DIV, "cr?", "foot", "doc-pagefooter",
- "aria-label", "manual footer line");
+ "aria-label", "Manual footer line");
print_otag(h, TAG_SPAN, "c", "foot-left");
print_stagq(h, t);
@@ -489,7 +489,7 @@ mdoc_root_pre(const struct roff_meta *meta, struct html *h)
meta->title, meta->msec);
t = print_otag(h, TAG_DIV, "cr?", "head", "doc-pageheader",
- "aria-label", "manual header line");
+ "aria-label", "Manual header line");
print_otag(h, TAG_SPAN, "c", "head-ltitle");
print_text(h, title);