Bug 149313 - AX: Link content is not included in node name calculation when targeted by aria-labelledby
Summary: AX: Link content is not included in node name calculation when targeted by ar...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 8
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-17 16:23 PDT by Jesse Beach
Modified: 2015-09-17 16:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Beach 2015-09-17 16:23:45 PDT
The accessible label of link elements (content, aria-label, title) is not included in the composed label indicated by aria-labelledby. I've put together a codepen that can be opened in Chrome (correct behavior) and Safari (aberrant behavior).

http://codepen.io/jessebeach/pen/xwZQRp

Chrome produces: "Catelyn Stark, Ned Stark, Arya Stark with Jon Snow and Bran Stark Some content group"
Safari produces: ", Ned Stark , with and Some content group"

The missing words are content from link elements.

This produces a bad experience when, for example, the title of a post, which contains a link, is used as the label for an article or story item.
Comment 1 Radar WebKit Bug Importer 2015-09-17 16:24:10 PDT
<rdar://problem/22749069>