WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Voiceover ignore lang attribute

for

From: Isabel Holdsworth
Date: Jun 18, 2019 4:13AM


Hi Lory,

JAWS speaks buttons and links in the language that's specified in
their LANG attribute if they have one.

Have you tried wrapping the button's text inside a <span> with a LANG attribute?

<button><span lang="fr">Bonjieur</span></button>

I don't like using hacks like this, but sometimes they're the only
thing that works.

It would be great if you could report this bug to Apple.

Cheers, Isabel

On 14/06/2019, Lory Bineau < <EMAIL REMOVED> > wrote:
> Hello,
>
> If I set the lang attribute on an <a> tag Voice over pronounce it in the
> targeted language.
> But the same thing does not work on <button> or <input type="submit">
> You can reproduce the bug with this link:
> https://codepen.io/lbineau/pen/OYqBeY
> I don't know if it happens on other screen readers.
>
> Has anyone encounter this issue before? How to fix it?
>
> Best regards
> --
> Lory Bineau
> Senior Consultant
> t + 41 58 307 67 25
> <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
>
> blue-infinity.com<http://www.blue-infinity.com/>;
> facebook<https://www.facebook.com/blueinfinityOfficialPage/> |
> linkedIn<https://www.linkedin.com/company/blue-infinity> |
> twitter<https://twitter.com/_blue_infinity> |
> youtube<https://www.youtube.com/c/infinitvblueinfinity/>
>
> blue-infinity Linked by Isobar is part of Dentsu Aegis Network, with over
> 35,000 experts in 145 countries.
>
> The blue-infinity building | 35 route des Jeunes | 1227 Geneva |
> Switzerland
> t +41 58 307 7000 | international t +800 307 70 000
>
>
> -------
> The information in this e-mail, and those ensuing, is confidential and may
> be legally privileged. It is intended solely for the addressee.
> If you are not the intended recipient, please destroy this message and
> notify us immediately.
> > > > >