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 | a77bef18f1857a07c9bb3dee9c7baf792fcfe588 (patch) | |
tree | 3faa0dd7eb6463108e7e733fb70d042d1c6e0214 /html.c | |
parent | 2cf172046664124e8c0589ee7e420c1008ee368e (diff) | |
download | mandoc-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 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,8 @@ -/* $Id: html.c,v 1.276 2022/06/24 11:15:53 schwarze Exp $ */ +/* $Id: html.c,v 1.277 2022/07/03 14:29:44 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017-2021 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2022 Anna Vyalkova <cyber@sysrq.in> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -67,6 +68,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"style", HTML_NLALL | HTML_INDENT}, {"title", HTML_NLAROUND}, {"body", HTML_NLALL}, + {"main", HTML_NLALL}, {"div", HTML_NLAROUND}, {"section", HTML_NLALL}, {"nav", HTML_NLALL}, |