aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-10-05 11:57:23 -0700
committerJohn MacFarlane <[email protected]>2022-10-05 11:58:50 -0700
commitb05c380f6ff4375cbc27955653fd31310ff2f94d (patch)
tree5418007d4f39e416e4233319f7fa41387b1ecf81 /src
parent2d888d19ac3b95ccec021daeba13e189599f4de5 (diff)
HTML writer: replace deprecated aria roles for bibliography entries.
`doc-biblioentry` -> `listitem` `doc-bibliography` -> `list` Closes #8354.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index ce67dd31a..eab583585 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -881,8 +881,8 @@ blockToHtmlInner opts (Div attr@(ident, classes, kvs') bs) = do
, k /= "width" || "column" `notElem` classes] ++
[("style", "width:" <> w <> ";") | "column" `elem` classes
, ("width", w) <- kvs'] ++
- [("role", "doc-bibliography") | isCslBibBody && html5] ++
- [("role", "doc-biblioentry") | isCslBibEntry && html5]
+ [("role", "list") | isCslBibBody && html5] ++
+ [("role", "listitem") | isCslBibEntry && html5]
let speakerNotes = "notes" `elem` classes
-- we don't want incremental output inside speaker notes, see #1394
let opts' = if | speakerNotes -> opts{ writerIncremental = False }