W3C home > Mailing lists > Public > wai-xtech@w3.org > August 2010

Re: ISSUE 30 @longdesc use cases

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 23 Aug 2010 09:58:21 -0700
Message-ID: <AANLkTim8AGUxt_O99jnXW+7QWJBmA6EEQZjbLcdXk3xH@mail.gmail.com>
To: Joshue O Connor <joshue.oconnor@cfit.ie>
Cc: HTML Accessibility Task Force <public-html-a11y@w3.org>, HTML WG <public-html@w3.org>, W3C WAI-XTECH <wai-xtech@w3.org>, Barry McMullin <barry.mcmullin@dcu.ie>, Laura Carlson <laura.lee.carlson@gmail.com>
On Mon, Aug 23, 2010 at 5:02 AM, Joshue O Connor <joshue.oconnor@cfit.ie> wrote:
> Hi,
>
> I have come across a couple of interesting @longdesc use cases. The
> first is by Laura Carslon which used "A11y Resolved Bug Comparisons"
> graphs and pie charts. Describing a pie chart and graph like the
> examples Laura provide would be extremely difficult without an attribute
> like @longdesc, if you don't want the descriptions to appear inline. [1]

Wouldn't this markup work?

<img src="chart.png" alt="..." aria-describedby="chart-description">
<p hidden id="chart-description">
  long description here.
</p>

Note that the 'hidden' attribute prevents the description from being
displayed inline, but doesn't prevent it from being exposed to AT
users. You can even support older UAs which doesn't support the
'hidden' attribute using CSS or simply adding a style="display:none;"
attribute.

This seems to work in firefox based on code inspection, though
wouldn't mind getting it confirmed by someone with AT tools installed.

/ Jonas
Received on Monday, 23 August 2010 16:59:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 13:16:09 GMT