On 10/2/15 10:02 PM, Zibi Braniecki wrote:
On Tuesday, September 29, 2015 at 4:01:52 AM UTC-7, Axel Hecht wrote:
The question boils down to:
Is there a DOM element where we wouldn't want to take the text content
and some attributes because one attribute is missing?
Technically no, morally yes. I believe that we should aim for element
consistency, so if 'placeholder' or 'title' or 'ariaLabel' is missing, we
should take the whole element from fallback.
My current thinking about localizers is that we'll lose moral debates.
I'd also place ariaLabel in the optional category, like accesskeys. Most
of our languages have only few users, and it's unlikely that we'll see
usage of a11y strings in them. I'd rather use telemetry to inform us on
which languages should invest in a11y. Yeah, chicken-and-egg, but still.
Axel
Is there a DOM element where we wouldn't want to take the ..... because
the text content is missing?
Same as above. If textContent is missing from an element and it should be
there, we want to take it from fallback. And I opt for consistency of an
element.
Do we need to sanitize obsolete attributes? Or is the code in
https://github.com/l20n/l20n.js/blob/master/src/bindings/html/overlay.js
strong enough?
Stas?
zb.
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n