summaryrefslogtreecommitdiffstats
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
commit3f6a596c60833741991c23766d8710154bd82dfd (patch)
treeb4b127ac6ac49bda9b7168e2dfb0bde79fbff169 /mdoc_html.c
parentcf1c247205f081780afa35078c938782166eb318 (diff)
downloadmandoc-3f6a596c60833741991c23766d8710154bd82dfd.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index a0e29c72..16b72e00 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -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);