summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-01-11 12:44:10 +0000
committerschwarze <schwarze@openbsd.org>2019-01-11 12:44:10 +0000
commit0ce603aba07de58c700ff6ce894995bc749d618d (patch)
treed13e68532418cb9bda34494b001a82fcc7198c01 /usr.bin/mandoc/man_html.c
parentSimilar CAVEATS regarding LC_NUMERIC as was just committed (diff)
downloadwireguard-openbsd-0ce603aba07de58c700ff6ce894995bc749d618d.tar.xz
wireguard-openbsd-0ce603aba07de58c700ff6ce894995bc749d618d.zip
Remove the HTML title= attributes which harmed accessibility and
violated the principle of separation of content and presentation. Instead, implement the tooltips purely in CSS. Thanks to John Gardner <gardnerjohng at gmail dot com> for suggesting most of the styling in the new ::before rules.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index 7da9a5a40d5..d75dc1ff453 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_html.c,v 1.120 2019/01/07 06:51:37 schwarze Exp $ */
+/* $OpenBSD: man_html.c,v 1.121 2019/01/11 12:44:10 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -297,9 +297,9 @@ man_SH_pre(MAN_ARGS)
case ROFFT_HEAD:
id = html_make_id(n, 1);
if (n->tok == MAN_SH)
- print_otag(h, TAG_H1, "cTi", "Sh", id);
+ print_otag(h, TAG_H1, "ci", "Sh", id);
else
- print_otag(h, TAG_H2, "cTi", "Ss", id);
+ print_otag(h, TAG_H2, "ci", "Ss", id);
if (id != NULL)
print_otag(h, TAG_A, "chR", "permalink", id);
break;
@@ -511,7 +511,7 @@ man_SY_pre(MAN_ARGS)
break;
case ROFFT_HEAD:
print_otag(h, TAG_TD, "");
- print_otag(h, TAG_CODE, "cT", "Nm");
+ print_otag(h, TAG_CODE, "c", "Nm");
break;
case ROFFT_BODY:
print_otag(h, TAG_TD, "");
@@ -533,10 +533,10 @@ man_UR_pre(MAN_ARGS)
assert(n->child->type == ROFFT_TEXT);
if (n->tok == MAN_MT) {
mandoc_asprintf(&cp, "mailto:%s", n->child->string);
- print_otag(h, TAG_A, "cTh", "Mt", cp);
+ print_otag(h, TAG_A, "ch", "Mt", cp);
free(cp);
} else
- print_otag(h, TAG_A, "cTh", "Lk", n->child->string);
+ print_otag(h, TAG_A, "ch", "Lk", n->child->string);
}
assert(n->next->type == ROFFT_BODY);