WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: data-content attribute

for

From: Patrick H. Lauke
Date: Apr 3, 2013 9:23AM


On 03/04/2013 16:09, Greg Gamble wrote:
> Is the data-content attribute readable by screen readers? I using an information popover for password rules and the rules are in a data-content attribute. I have an aria-describedby in the password textbox and its pointing to the popover.

The data-content attribute on its own is not directly exposed to SRs, as
far as I'm aware, as it's just a custom attribute that can hold whatever
you want it to hold (it may be text, or it may be completely custom
stuff like hex values or binary data etc).

However, I'll assume that the popover is generated and that the end
result is actual HTML markup (a div, containing some text, etc). This
should be readable by screen readers. As long as those popovers are also
constantly present in the markup (e.g. they're generated at load time,
rather than only when needed/accessed), then the aria-describedby
pointing to them should be legit.

P