Re: aside and figure elements

Leif Halvard Silli, Mon, 7 Jun 2010 14:01:57 +0200:
> Steven Faulkner, Mon, 7 Jun 2010 11:18:24 +0100:
>> hi laura,
>> we haven't discussed the <figure> element.
>> 
>> my take on the figure element is that the
>> # <figure> should be mapped to accessibility APIs as a grouping
>> element like <p> or <div>
>> # decorative images should not be allowed as content of a <figure>
>> element as the HTML5 semantics imply that the content of the figure
>> should be meaningful, so no <img alt="">
> 
> Unless I misinterpret what you say, then WAI-ARIA disagrees with you 
> (and Shelley has been using the same example in her discussion of the 
> issue). WAI-ARIA "blesses" a construct which is 100% identical to a 
> <figure> containing a presentational <img> in combination with a 
> caption: [1]
> 
> ]]
> In the following code sample, the containing div element has a WAI-ARIA 
> role of img and is appropriately labeled by the caption paragraph. In 
> this example the img element can be marked as presentation because the 
> role and the text alternatives are provided by the containing element.
> 
> <div role="img" aria-labelledby="caption">
>   <img src="example.png" role="presentation" alt="">
>   <p id="caption">A visible text caption labeling the image.</p>
> </div>
> [[

Follow-up: Thus I guess we should assume that the figure caption 
captions the entire <figure> and not the specific element(s) that 
make(s) up the content of the <figure>.
-- 
leif halvard silli

Received on Monday, 7 June 2010 12:10:49 UTC