commit
7e964445b5
|
@ -862,6 +862,9 @@ window.html10n = (function(window, document, undefined) {
|
||||||
// Apply translation
|
// Apply translation
|
||||||
if (node.children.length === 0 || prop != 'textContent') {
|
if (node.children.length === 0 || prop != 'textContent') {
|
||||||
node[prop] = str.str
|
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 {
|
} else {
|
||||||
var children = node.childNodes,
|
var children = node.childNodes,
|
||||||
found = false
|
found = false
|
||||||
|
|
Loading…
Reference in New Issue