This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29213 - Can aria-label or arial-labelledby be used instead of alt for providing an accessible name
Summary: Can aria-label or arial-labelledby be used instead of alt for providing an ac...
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 alt techniques (editor: Steven Faulkner) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-20 13:45 UTC by jgunder
Modified: 2015-10-28 16:45 UTC (History)
6 users (show)

See Also:


Attachments

Description jgunder 2015-10-20 13:45:16 UTC
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?
Comment 1 alexander surkov 2015-10-20 14:00:40 UTC
aria-label or aria-labelledy can be used on any element. Is point of the bug that the HTML spec should say that explicitly?
Comment 2 steve faulkner 2015-10-20 14:19:52 UTC
(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.