Re: ISSUE 30 @longdesc use cases

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:17 UTC