Inline error method 4: The aria-errormessage
attribute
Home | Full results | Github page
Inline error messages can be programmatically associated with the form control using a matching aria-errormessage
and id
values. Authors must use the aria-invalid
attribute in conjunction with the aria-errormessage
attribute.
The aria-errormessage
is new to ARIA 1.1 and not yet fully supported. This means that the error message is not programatically associated with the form control.
Example
Markup
Results
OSX Voiceover | Windows NVDA | Windows JAWS | ||||||
---|---|---|---|---|---|---|---|---|
Chrome | Safari | Opera | Chrome | Firefox | Edge | Chrome | Firefox | Edge |
FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |