a11y: Gecko (and other engines currently) fails computedlabel expectation for <img title="foo" alt="">
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
People
(Reporter: james, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15
Expected results:
a11y: Gecko (and other engines currently) fails computedlabel expectation for <img title="foo" alt="">
Looks like the explicit alt="" overrides the included title attribute.
https://wpt.fyi/results/accname/name/comp_tooltip.tentative.html?label=pr_head&max-count=1&pr=49552
ARIA WG discussed and agreed this case should pass. WPT test was adjusted to align with the spec.
https://github.com/web-platform-tests/wpt/pull/49552
Reporter | ||
Comment 1•13 days ago
|
||
Comment 2•13 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Disability Access APIs' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•6 days ago
|
||
(In reply to James Craig from comment #0)
Looks like the explicit alt="" overrides the included title attribute.
To clarify, isn't that the intention now? That is, for <img alt="" title="foo">
, the alt="" should take precedence, cause the img to be pruned from the accessibiliy tree and thus result in a name of ""? That's what the test expects:
<img ... data-expectedlabel="" ...>
Updated•6 days ago
|
Updated•6 days ago
|
Description
•