aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.h
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 /html.h
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 'html.h')
-rw-r--r--html.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.h b/html.h
index b19ee20c..7c73fa4b 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.110 2022/06/24 11:15:53 schwarze Exp $ */
+/* $Id: html.h,v 1.111 2022/07/03 14:29:44 schwarze Exp $ */
/*
* Copyright (c) 2017, 2018, 2019, 2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -27,6 +27,7 @@ enum htmltag {
TAG_STYLE,
TAG_TITLE,
TAG_BODY,
+ TAG_MAIN,
TAG_DIV,
TAG_SECTION,
TAG_NAV,