about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-31 11:23:33 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-31 11:23:33 -0500
commit67bcc0bfd60b7115e16c16179c2ab213b4e585a8 (patch)
tree04c6eacc6a6fe48c530736537483f1db723a799f /app
parent3b276d268f8e49b897f16f490c78a5a5880c6216 (diff)
support federating `aria-hidden` property to mark content that should be skipped by screenreaders
Diffstat (limited to 'app')
-rw-r--r--app/lib/sanitize_config.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
index 9de557c8d..165a2fc88 100644
--- a/app/lib/sanitize_config.rb
+++ b/app/lib/sanitize_config.rb
@@ -121,11 +121,11 @@ class Sanitize
       elements: %w(p br span a abbr del pre sub sup blockquote code b strong u i s em h1 h2 h3 h4 h5 h6 ul ol li hr),
 
       attributes: {
-        'a'          => %w(href rel class title alt),
-        'span'       => %w(class),
-        'abbr'       => %w(title),
-        'blockquote' => %w(cite),
-        'p'          => %w(class),
+        'a'          => %w(href rel class title alt aria-hidden),
+        'span'       => %w(class aria-hidden),
+        'abbr'       => %w(title aria-hidden),
+        'blockquote' => %w(cite aria-hidden),
+        'p'          => %w(class aria-hidden),
       },
 
       add_attributes: {