ISSUE-334: Inconsistency between spec and implementation guide
Precedence of aria-label and aria-labelledby
Inconsistency between spec and implementation guide
- State:
- CLOSED
- Product:
- ARIA 1.0
- Raised by:
- Joseph Scheuhammer
- Opened on:
- 2009-06-29
- Description:
- The text equivalent algorithm gives rules for how to use aria-label and aria-labelledby properties. The spec's [1] rule 2A states that aria-labelledby is preferred. The implementation guide [2] rules 2C and 2D state that aria-label is preferred. Which should be preferred?
Notes:
- FF 3.5 prefers aria-label= [3]
- the bug noted in [3] also states that aria-label is preferred when the text equivalent will not be shown, but aria-labelledby is preferred when it will be shown.
- Recent discussion thread on wai-xtech regarding both being present [4]
[1] http://www.w3.org/WAI/PF/aria/#nameref
[2] http://www.w3.org/WAI/PF/aria-implementation/#mapping_special_te
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=453417
[4] http://lists.w3.org/Archives/Public/wai-xtech/2009Jun/0099.html - Related Actions Items:
ACTION-549 on James Craig to Modify text equiv computation to switch aria-label to take precedence over aria-labelledby (was reversed at some point, but aria-label is more explicit) - due 2009-12-07, closedACTION-548 on Michael Cooper to Set up a provision for a single file to be included in two documents. - due 2010-10-19, closed- Related emails:
- No related emails
Related notes:
A couple of other notes:
1. There is an implied principled reason (heuristic?) for choosing between label and labelledby. If the text for the label is already present as content in the document, use labelledby. If there is a need to not the text as content, then use label.
2. There is a related issue, 319 [1], about the presence of both aria-label and aria-labelledby.
[1] http://www.w3.org/WAI/PF/Group/track/issues/319
[2] http://lists.w3.org/Archives/Public/public-pfwg-comments/2009AprJun/0073.htm
When Action 548 and 549 are completed this issue is resolved.
Richard Schwerdtfeger, 30 Nov 2009, 15:57:17The UAIG has now been rolled back to use the algorithm in the February draft. Some of the original errors have been corrected.
The UAIG now agrees with the spec that aria-label should be given precedence. David is reviewing it to ensure that the algorithm per the spec to ensure that everything else is in agreement.
Closed Jan. 4, 2010. December 2009 drafts reflected consistency.
Richard Schwerdtfeger, 4 Jan 2010, 15:39:55Display change log