summaryrefslogtreecommitdiffstats
path: root/man_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 /man_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 'man_html.c')
-rw-r--r--man_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index 5f715cf0..cd442a35 100644
--- a/man_html.c
+++ b/man_html.c
@@ -132,7 +132,7 @@ html_man(void *arg, const struct roff_meta *man)
}
man_root_pre(man, h);
- t = print_otag(h, TAG_DIV, "c", "manual-text");
+ t = print_otag(h, TAG_MAIN, "c", "manual-text");
print_man_nodelist(man, n, h);
print_tagq(h, t);
man_root_post(man, h);