summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-11 12:56:42 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-11 12:56:42 +0000
commit3b8011820928761c446895df4343ab1f0287aaf3 (patch)
tree003328617349dff51dc904eba46f01efabb305b1 /man_html.c
parenta322e942d511bf3b7f2db0bbbdd322d6f749a7e3 (diff)
downloadmandoc-3b8011820928761c446895df4343ab1f0287aaf3.tar.gz
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 'man_html.c')
-rw-r--r--man_html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/man_html.c b/man_html.c
index f3aa36dd..ce718a0e 100644
--- a/man_html.c
+++ b/man_html.c
@@ -299,9 +299,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;
@@ -513,7 +513,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, "");
@@ -535,10 +535,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);