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

Test: aria-describedby attribute that references role="alert"

Current support: partial (3/9)

This test ensures that the accessible description is computed correctly when aria-describedby references an element with role="alert". See related Firefox bug that suggests that ara-describedby should not include the text in role="alert". This is a common design pattern when error messages update in real time and the author wants to inform screen reader users of those updates.

Run this test and and submit your results

On this page

Test HTML

open the test page in a new tab
<!DOCTYPE html>
<html lang="en">
<head>
    <title>ARIA describedby with role="alert"</title>
</head>
<body>

<h1>ARIA describedby with role="alert</h1>

<label for="target">Example label</label>
<input id="target" aria-describedby="error" type="text">
<div id="error" role="alert">
    error
</div>

</body>
</html>

Support tables

Assertions are conditions that must be met for the feature to be considered as "supported". Only "MUST" assertions need to be met for minimal "support". "SHOULD" and "MAY" assertions indicates support that goes above and beyond. Note that there is not an explicit standard that dictates these assertions, and as such, they are likely opinionated. Minimal support reflects that the structure, relationships, and functionality of the feature are conveyed and operable by assistive technology rather than minimal conformance to any specific WCAG SC. As such, a feature might not meet all "MUST" assertions but still be usable (potentially frustratingly so).

Assertion support summary by type of assertion
MUSTSHOULDMAY
partial (3/9)nana

Assertion support summary by assertion

FeatureAssertionSupportHas failing tests
aria-describedby attributeThe screen reader MUST convey the value if validpartial (3/9)Yes

aria-describedby attribute: The screen reader MUST convey the value if valid

This assertion is from the aria-describedby attribute feature.

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingInternet Explorernot applicable-More information
JAWS 2018.1811.2Google Chrome 72yes
  • Result: (pass)
    • command: Tab
    • Output: Example label, edit, error
More information
JAWS 2018.1811.2Internet Explorer 11yes
  • Result: (pass)
    • command: Tab
    • Output: Example label, edit, error
More information
JAWS 2018.1811.2Firefox (desktop) 60yes
  • Result: (pass)
    • command: Tab
    • Output: Example label, edit, error
More information
Narrator 1809Microsoft Edge 44.17763none
  • Result: (fail)
    • command: Tab
    • Output: Example label, editing
More information
NVDAGoogle Chromeunknown-More information
NVDA 2018.4.1Firefox (desktop) 65.0.2none
  • Result: (fail)
    • command: Tab
    • Output: Example label edit has auto complete
More information
TalkBackGoogle Chrome (android)unknown-More information
VoiceOver for iOS 12.1.4Safari (iOS) 12.1.4none
  • Result: (fail)
    • command: Swipe Right
    • Output: Example label, edit text
More information
VoiceOver for macOS 10.14.3Safari (macOS) 12.0.3none
  • Result: (fail)
    • command: VO + Right arrow
    • Output: Example label, edit text
More information

Extended Support for: aria-describedby attribute: The screen reader MUST convey the value if valid

These are less common combinations

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingFirefox (desktop)not applicable-More information
Dragon Naturally SpeakingGoogle Chromenot applicable-More information
JAWS 2018.1811.2Microsoft Edge 44none
  • Result: (fail)
    • command: Tab
    • Output: Example label, edit
More information
NarratorFirefox (desktop)unknown-More information
NarratorGoogle Chromeunknown-More information
NarratorInternet Explorerunknown-More information
NVDAInternet Explorerunknown-More information
NVDAMicrosoft Edgeunknown-More information
TalkBackFirefox (desktop)unknown-More information
VoiceOver for iOSGoogle Chrome (ios)unknown-More information
VoiceOver for macOSGoogle Chromeunknown-More information
VoiceOver for macOSFirefox (desktop)unknown-More information

History

  • 2019-02-08 Test created