From be6b06a1a96bc85baec8037aa956f703a3ad1198 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Sun, 19 Mar 2023 18:06:39 -0400 Subject: [PATCH 1/5] Support aria-labelledby in htmlwidgets. --- NEWS.md | 2 ++ R/output.R | 30 +++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/NEWS.md b/NEWS.md index cf82f0b1a3..41512546c6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1089,6 +1089,8 @@ - added three global R options `knitr.sanitize.errors`, `knitr.sanitize.warnings`, and `knitr.sanitize.messages` to mask or change the messages, e.g. if `options(knitr.sanitize.errors = TRUE)` and the chunk option `error = TRUE`, the actual error message will be replaced by a character string like `"An error occurred"`; these options can also accept character values so you can customize the messages to be displayed, e.g. `options(knitr.sanitize.warnings = 'You had a warning from the code')`; see https://github.com/rstudio/shiny/issues/1123 for the motivation of these options +- htmlwidgets can now support alt text by specifying an attribute `aria-labelledby="