From a77bef18f1857a07c9bb3dee9c7baf792fcfe588 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 3 Jul 2022 14:29:44 +0000 Subject: Instead of the custom
, use the standard HTML
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 . Patch from Anna, slightly tweaked by me. --- html.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'html.h') 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 * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons @@ -27,6 +27,7 @@ enum htmltag { TAG_STYLE, TAG_TITLE, TAG_BODY, + TAG_MAIN, TAG_DIV, TAG_SECTION, TAG_NAV, -- cgit v1.2.3-56-ge451