Bug 149313

Summary: AX: Link content is not included in node name calculation when targeted by aria-labelledby
Product: WebKit Reporter: Jesse Beach <jesse.r.beach>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 8   
Hardware: Mac   
OS: OS X 10.11   

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>