[Bug 29213] Can aria-label or arial-labelledby be used instead of alt for providing an accessible name

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29213

--- Comment #2 from steve faulkner <faulkner.steve@gmail.com> ---
(In reply to jgunder from comment #0)
> I don't see any use of aria-label or aria-labelledy .
> 
> Couldn't aria-labelledby be used in the figure examples to create an
> accessible name for an img element by referencing the figcaption element?

Hi Jon, there is nothing stopping you from doing this. But consider the output
for the SR user:

<figure>
<img src="pussy.jpg">
<figcaption>cure little pussy</figcaption>
</figure>


"group: cute little pussy"
"graphic: cute little pussy"
 "cute little pussy" 

In browsers such as firefox/chrome, figcaption (as defined )provides the acc
name for the figure element which is announced.

This already causes repetition, because AT have not implemented any logic
around the figure/figcaption markup pattern.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 20 October 2015 14:19:58 UTC