]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_html.c
Remove the HTML title= attributes which harmed accessibility and
[mandoc.git] / man_html.c
index 8b4dd9459f4d6955f6d3d8e0e4bfaa5c0bb9447b..e11ed0e697d121d56254ff5b9c22970d5cc18311 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_html.c,v 1.167 2019/01/07 07:26:29 schwarze Exp $ */
+/*     $Id: man_html.c,v 1.168 2019/01/11 12:56:43 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);