about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-10 21:22:08 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-10 21:22:08 -0500
commitd7b4f1f93bf54f40921b75222949bd05d813889e (patch)
tree7fc9fa3f5f3073a0bc33ead7001e275ceaee9f9e /app
parent81988e386d36894b2389afb94e3bfcb8c5ffaa5a (diff)
allow `aria-label` attribute to be federated (resolves #10)
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 165a2fc88..d5ac407b5 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 aria-hidden),
-        'span'       => %w(class aria-hidden),
-        'abbr'       => %w(title aria-hidden),
-        'blockquote' => %w(cite aria-hidden),
-        'p'          => %w(class aria-hidden),
+        'a'          => %w(href rel class title alt aria-hidden aria-label),
+        'span'       => %w(class aria-hidden aria-label),
+        'abbr'       => %w(title aria-hidden aria-label),
+        'blockquote' => %w(cite aria-hidden aria-label),
+        'p'          => %w(class aria-hidden aria-label),
       },
 
       add_attributes: {