On Thu, Dec 8, 2011 at 6:28 PM, Carolyn Wagner <wagner...@verizon.net> wrote:
> I cannot share the url of the page I am working with, but I can tell you that 
> a link was added under the image linking to a long description page, in 
> addition to the longdesc attribute in the image tag.

Interesting, thanks.

> I am curious how the aria-describedby attribute would be used. Would it be 
> included in the image tag, or a surrounding div tag? Do you have any example 
> you can point me to? Or can you provide an example of it used in source code?

In it's simplest form:

   <img alt="Short text alternative" aria-describedby="#long-text-alternative">
   <p id="long-text-alternative"></p>

Note:

   * Unlike with longdesc, typical AT setups will read the element
referenced by aria-describedby automatically when the image is
encountered. This is not always agreed to be an advantage.
   * The element referenced by aria-describedby can be anywhere on the
same page.
   * You can reference elements in different parts of the page using a
space separated list (#part1 #part2), and AT will join the text
together.
   * This technique is not suitable for text alternatives consisting
of structural markup like tables since only the text will be put in
the accessibility tree, not the structure.
   * You can add JS to hide or show the element when a button is
pushed (perhaps an "info" icon) to minimize visual impact. Even when
the element is hidden with CSS, AT should still read the content when
the image is encountered. This also has the advantage of hiding it
from the normal reading flow which will stop typical AT setups from
reading it again. In the future you should be able to use the HTML5
<details> element instead of JS.

--
Benjamin Hawkes-Lewis
<--- Mac Access At Mac Access Dot Net --->

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages posted    to the Mac-Access forum at 
either the list's own dedicated web archive:
<http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html>
or at the public Mail Archive:
<http://www.mail-archive.com/mac-access@mac-access.net/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml>

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>

Reply via email to