Display A, announce B - normal content
Developers may wish to display one piece of content, but replace it with other content for screen reader users.Examples could include:
- Displaying a short form country code - "AED" and announcing the long form to screen reader users - "United Arab Emirates Dirham".
- Displaying a short form month - "Janu" and announcing the long form to screen reader users - "January".
Options
Option 1: Normal content - aria-hidden="true"
Test
- Screen readers should only read out the Different content, not the visibly displayed content - "United Arab Emirates Dirham".
Example
United Arab Emirates Dirham
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | Pass | Pass | |
Windows 7 | IE 8 | Pass | Pass | |
Windows 7 | Chrome 39 | Pass | Pass | |
Windows 7 | Firefox 34 | Pass | Pass | |
OSX 10.9 | Chrome 39 | Pass | ||
OSX 10.9 | Firefox 34 | FAIL - reads both | ||
OSX 10.9 | Safari 7 | Pass |
Option 2: Normal content - role="presentation"
Test
- Screen readers should only read out the Different content, not the visibly displayed content - "Bosnia and Herzegovina Convertible Marka".
Example
BAM
Bosnia and Herzegovina Convertible Marka
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | FAIL - reads both | FAIL - reads both | |
Windows 7 | IE 8 | FAIL - reads both | FAIL - reads both | |
Windows 7 | Chrome 39 | FAIL - reads both | FAIL - reads both | |
Windows 7 | Firefox 34 | FAIL - reads both | FAIL - reads both | |
OSX 10.9 | Chrome 39 | FAIL - reads both | ||
OSX 10.9 | Firefox 34 | FAIL - reads both | ||
OSX 10.9 | Safari 7 | FAIL - reads both |