aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorNoam Postavsky2018-08-07 20:40:56 -0400
committerNoam Postavsky2018-08-27 19:16:47 -0400
commit0250d22eeb8427cb87c58f528f337dc83d0419a5 (patch)
tree13185fd4551b6034a1fe3f6f2c10af54b99d6c7f /doc/misc
parentc8b86362d45a07e0aec0041cade551c3c663ea8c (diff)
downloademacs-0250d22eeb8427cb87c58f528f337dc83d0419a5.tar.gz
emacs-0250d22eeb8427cb87c58f528f337dc83d0419a5.zip
shr: Allow skipping tags with aria-hidden (Bug#32348)
* lisp/net/shr.el (shr-discard-aria-hidden): New option. (shr-descend): Suppress aria-hidden=true tags if it's set. * doc/misc/eww.texi (Advanced): Document shr-discard-aria-hidden. * etc/NEWS: Announce it.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/eww.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
index 43adc2eda0f..aa17eee9d94 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -262,6 +262,16 @@ contrast. If that is still too low for you, you can customize the
262variables @code{shr-color-visible-distance-min} and 262variables @code{shr-color-visible-distance-min} and
263@code{shr-color-visible-luminance-min} to get a better contrast. 263@code{shr-color-visible-luminance-min} to get a better contrast.
264 264
265@vindex shr-discard-aria-hidden
266@cindex @code{aria-hidden}, HTML attribute
267 The HTML attribute @code{aria-hidden} is meant to tell screen
268readers to ignore a tag's contents. You can customize the variable
269@code{shr-discard-aria-hidden} to tell @code{shr} to ignore such tags.
270This can be useful when using a screen reader on the output of
271@code{shr} (e.g., on EWW buffer text). It can be useful even when not
272using a screen reader, since web authors often put this attribute on
273non-essential decorative elements.
274
265@cindex Desktop Support 275@cindex Desktop Support
266@cindex Saving Sessions 276@cindex Saving Sessions
267 In addition to maintaining the history at run-time, EWW will also 277 In addition to maintaining the history at run-time, EWW will also