E-mail List Archives
Thread: data-content attribute
Number of posts in this thread: 2 (In chronological order)
From: Greg Gamble
Date: Wed, Apr 03 2013 9:09AM
Subject: data-content attribute
No previous message | Next message →
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.
Here is an example of the popover: http://twitter.github.com/bootstrap/javascript.html#popovers
Greg Gamble
SBCTC - Olympia | Information Services
From: Patrick H. Lauke
Date: Wed, Apr 03 2013 9:23AM
Subject: Re: data-content attribute
← Previous message | No next message
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