diff options
| author | Noam Postavsky | 2018-08-07 20:40:56 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-08-27 19:16:47 -0400 |
| commit | 0250d22eeb8427cb87c58f528f337dc83d0419a5 (patch) | |
| tree | 13185fd4551b6034a1fe3f6f2c10af54b99d6c7f /doc/misc | |
| parent | c8b86362d45a07e0aec0041cade551c3c663ea8c (diff) | |
| download | emacs-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.texi | 10 |
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 | |||
| 262 | variables @code{shr-color-visible-distance-min} and | 262 | variables @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 | ||
| 268 | readers 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. | ||
| 270 | This 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 | ||
| 272 | using a screen reader, since web authors often put this attribute on | ||
| 273 | non-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 |