summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-06-24 11:15:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-06-24 11:15:53 +0000
commitedde740db3ca4eddd4bb01273e3a7f6362460736 (patch)
tree6008259c629896b844f0358e50beffae43757220 /html.h
parent3c3a57dd62c4cf30b0e5fc1215be90e10438b9e0 (diff)
downloadmandoc-edde740db3ca4eddd4bb01273e3a7f6362460736.tar.gz
Improve accessibility of -T html -O toc output by using the <nav> element
in the DPUB-ARIA doc-toc role. Patch from Anna Vyalkova <cyber at sysrq dot in> slightly tweaked by me. This is hopefully the start of a collaboration to improve accessibility of Unix manual pages using the WAI-ARIA, HTML-ARIA, and DPUB-ARIA standards. Progress appears to be possible without changing *anything* with respect to the way manual pages are written. Instead, it seems sufficient to properly translate semantic cues already implied by existing mdoc(7) markup into the appropriate HTML elements and ARIA attributes. Overall, the total length of HTML output is likely to increase slightly, but not much.
Diffstat (limited to 'html.h')
-rw-r--r--html.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.h b/html.h
index dda19b8a..32742461 100644
--- a/html.h
+++ b/html.h
@@ -29,6 +29,7 @@ enum htmltag {
TAG_BODY,
TAG_DIV,
TAG_SECTION,
+ TAG_NAV,
TAG_TABLE,
TAG_TR,
TAG_TD,