Go to overview: WAI-ARIA techniques with code examples
aria-label
to provide a label to div
with contenteditable=true
Detlev Fischer, (detlev [dot] fischer [ at ] testkreis [dot] de)
Last update: 12 February 2013
This example shows how aria-label
may be used on custom input elements - here, a few div
s used for text input and made editable with contenteditable=true
. Support is nnot great yet, but has improved since my last test in Oct 2012. No support yet on iOS 6.1 / Safari / VO and Jelly Bean 4.2 / Firefox / TalkBack.
Correct the spelling of the four words below. When you are done, press submit!
aria-label
to provide label to custom input div
with contenteditable=true
Notation: Tabbing action is included as ||.
Win 7, IE 9, JAWS 14 | supported |
|
---|---|---|
Win 7, FF 18, JAWS 14 | partial support |
|
Win 7, IE9, NVDA 2012.2.1 | not supported |
|
Win 7, FF 18, NVDA 2012.2.1 | supported |
|
Mac OS 10.6.8, VoiceOver | supported |
|
iOS 6.1, Safari, VoiceOver (iPad mini) | not supported | Ignores aria-label , just reads "ancilary || parsemonious || serendipidous || voiciferous" (Note: editing content of div with contenteditable=true seems tricky, VO often announces the next word, 'parsemonious' when editing 'ancilary') |
Android Jelly Bean 4.2, Firefox, Talkback (Nexus 7) | not supported | Ignores aria-label , just reads "ancilary || parsemonious || serendipidous || voiciferous" (Note: editing content of div with contenteditable=true seems very tricky, TB seems to place text cursor randomly in word and makes it hard to move it for deleting / typing (OK, I'm a TalkBack Novice). |
Win XP, IE 8, SaToGo | not supported | System Access SaToGo ignores aria-label (result from Oct 2012 - may need to be re-tested). |