Notice: This is a work in progress. Please submit feedback or suggestions.

Test: HTML option[lang] element

Screen Reader support level: partial (1/10)

Voice Control support level: not applicable

This test ensures that option elements with a lang attribute are announced correctly.

Run this test and and submit your results

On this page

Test HTML

open the test page
<!DOCTYPE html>
<html lang="en">
<head>
    <title>HTML option element with lang attribute</title>
</head>
<body>
<p>Use the screen reader to announce the target element.</p>

<label for="language-picker">
    Select language with lang set
    <select id="language-picker">
        <option lang="en">English</option>
        <option lang="fr">Français</option>
        <option id="target" lang="zh">中文 (简体)</option>
    </select>
</label>
</body>
</html>

Dates and Versions of tested combinations

ATAT VersionBrowserBrowser versionOS versionDate tested
NVDA2018.3.2Firefox (desktop)62177632018-10-19
VoiceOver for macOS10.14Safari (macOS)1210.142018-10-19

Summary of Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver for iOSVoiceOver for macOS
lang attribute
MUST switch to the specified language if it is validunknownunknownsupported with 1 unknown resultunknownunknownunknownnone

* means that some support is hidden behind settings

Summary of Voice Control support by expectation

ExpectationDragon Naturally SpeakingVoice Access for AndroidVoice Control for iOSVoice Control for MacOS
Not applicable

* means that some support is hidden behind settings

Detailed support results by expectation

Expectation for the lang attribute: switch to the specified language if it is valid

Strength of these expectations for different types of assistive technologies:

  • Screen Readers: MUST
  • Voice Control: NA

Grading method: Just one of the listed commands must pass for the expectation to pass.

This expectation is from the lang attribute feature.

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingGoogle Chromenot applicable-More information
JAWSGoogle Chromeunknown-More information
JAWSInternet Explorerunknown-More information
JAWSFirefox (desktop)unknown-More information
NarratorMicrosoft Edgeunknown-More information
NVDAGoogle Chromeunknown-More information
NVDAFirefox (desktop)yes
  • Result: (pass)
    • command: down arrow (Read next item)
    • Output: 中文 (简体)
Notes: Had to install the Simplified Chinese language in the Windows 10 Language Settings for this to work. If the language is not installed, nothing will be announced.
More information
OrcaFirefox (desktop)unknown-More information
TalkBackGoogle Chrome (android)unknown-More information
Voice Access for AndroidGoogle Chrome (android)not applicable-More information
Voice Control for iOSSafari (iOS)not applicable-More information
Voice Control for MacOSSafari (macOS)not applicable-More information
VoiceOver for iOSSafari (iOS)unknown-More information
VoiceOver for macOSSafari (macOS)none
  • Result: (fail)
    • command: VO + Right arrow (Read next item)
    • Output: (attempts to speak characters as english ideographs)
Notes: Had the Chinese language installed in VO settings.
More information

Extended Support for: lang attribute: switch to the specified language if it is valid

These are less common combinations

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingInternet Explorernot applicable-More information
Dragon Naturally SpeakingFirefox (desktop)not applicable-More information
JAWSMicrosoft Edgeunknown-More information
NarratorFirefox (desktop)unknown-More information
NarratorGoogle Chromeunknown-More information
NarratorInternet Explorerunknown-More information
NVDAInternet Explorerunknown-More information
NVDAMicrosoft Edgeunknown-More information
TalkBackFirefox (Android)unknown-More information
Voice Access for AndroidFirefox (Android)not applicable-More information
VoiceOver for iOSGoogle Chrome (ios)unknown-More information
VoiceOver for macOSGoogle Chromeunknown-More information
VoiceOver for macOSFirefox (desktop)unknown-More information
OrcaGoogle Chromeunknown-More information
Voice Control for MacOSGoogle Chromenot applicable-More information
Voice Control for MacOSFirefox (desktop)not applicable-More information
Back to top

History

  • 2018-10-19 Test created