diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-07-03 14:29:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-07-03 14:29:44 +0000 |
commit | 3f6a596c60833741991c23766d8710154bd82dfd (patch) | |
tree | b4b127ac6ac49bda9b7168e2dfb0bde79fbff169 /man_html.c | |
parent | cf1c247205f081780afa35078c938782166eb318 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |