WebAIM - Web Accessibility In Mind

E-mail List Archives

Lang attributes not being respected by VoiceOver in select options?


From: Alex Gonzalez
Date: Apr 20, 2022 4:34PM


I ran into an issue where lang attributes are not being respected by
VoiceOver when used on <option> elements inside of a <select> element.

An example of what I mean can be found at the following link:

You'll notice when using VoiceOver the screen reader does not switch
pronunciation correctly based on which language it is reading even though
the lang attributes are properly set. It seems to read pages where the lang
attribute is set on the <html> element just fine however.

I was wondering if anyone knows of a work around or fix for this issue?

Alex Gonzalez (he/him) Software Engineer
Accessibility Advocate codeforamerica.org