summaryrefslogtreecommitdiff
path: root/src/static/js/html10n.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-06-28 17:14:37 +0100
committerJohn McLear <john@mclear.co.uk>2015-06-28 17:14:37 +0100
commit90575064a9367141d570e641933abee0678d1600 (patch)
treeed1dbb8107ef0b989f86963baf406544b4946986 /src/static/js/html10n.js
parent85d44c8a4eca7b389684f1e70039ec781a47c0e7 (diff)
downloadetherpad-lite-90575064a9367141d570e641933abee0678d1600.zip
aria-labels for everything
Diffstat (limited to 'src/static/js/html10n.js')
-rw-r--r--src/static/js/html10n.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js
index e2540f66..eecbaa0a 100644
--- a/src/static/js/html10n.js
+++ b/src/static/js/html10n.js
@@ -862,6 +862,9 @@ window.html10n = (function(window, document, undefined) {
// Apply translation
if (node.children.length === 0 || prop != 'textContent') {
node[prop] = str.str
+ node.setAttribute("aria-label", str.str); // Sets the aria-label
+ // The idea of the above is that we always have an aria value
+ // This might be a bit of an abrupt solution but let's see how it goes
} else {
var children = node.childNodes,
found = false