aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-07-03 14:29:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-07-03 14:29:44 +0000
commita77bef18f1857a07c9bb3dee9c7baf792fcfe588 (patch)
tree3faa0dd7eb6463108e7e733fb70d042d1c6e0214 /mdoc_html.c
parent2cf172046664124e8c0589ee7e420c1008ee368e (diff)
downloadmandoc-a77bef18f1857a07c9bb3dee9c7baf792fcfe588.tar.gz
mandoc-a77bef18f1857a07c9bb3dee9c7baf792fcfe588.tar.zst
mandoc-a77bef18f1857a07c9bb3dee9c7baf792fcfe588.zip
Instead of the custom <div class="manual-text">, use the standard
HTML <main> element. The benefit is that it has the ARIA landmark role "main" by default. To ease the transition for people using their own CSS file instead of mandoc.css, retain the custom class for now. I had this idea in a discussion with Anna Vyalkova <cyber at sysrq dot in>. Patch from Anna, slightly tweaked by me.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 63c98aab..9a32fe4e 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.344 2022/06/25 12:44:25 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.345 2022/07/03 14:29:45 schwarze Exp $ */
/*
* Copyright (c) 2014-2022 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -302,7 +302,7 @@ html_mdoc(void *arg, const struct roff_meta *mdoc)
}
mdoc_root_pre(mdoc, h);
- t = print_otag(h, TAG_DIV, "c", "manual-text");
+ t = print_otag(h, TAG_MAIN, "c", "manual-text");
print_mdoc_nodelist(mdoc, n, h);
print_tagq(h, t);
mdoc_root_post(mdoc, h);