I just noticed that, although they say that the attributes aria-label
, aria-labelledby
and aria-describedby
work on each element (see. Http://www.w3.org/TR/wai-aria/states_and_properties#aria-describedby ), they seem to only work for multiple elements of a type a
, not for, for example, div
or p
in NVDA and JAWS.
I created a little code to demonstrate the problem (view it using the view and focus mode):
http://codepen.io/jmuheim/pen/avWbPe
For example, in NVDA, in the element a
, aria-label
they aria-labelledby
work both in viewing mode and in focus mode. But it is aria-describedby
declared only in focus mode, and not in view mode.
For an element, input
none of the attributes work in view mode, but all work in focus mode.
For bare text elements such as p
or div
, none of the attributes work.
In JAWS, this is a very similar behavior, but at least for the element p
, when there is aria-describedby
, it announces that the description can be read by pressing "JAWS + alt + r".
I really do not see a clear picture for this, so I wonder what are the general rules in the firmware regarding the use of these attributes? Or better: why don't they just work for each item, as the specification suggests?