Closed Bug 1952401 Opened 13 days ago Closed 6 days ago

a11y: Gecko (and other engines currently) fails computedlabel expectation for <img title="foo" alt="">

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1802307

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

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.

Component: Untriaged → Disability Access APIs
Product: Firefox → Core

(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="" ...>

Flags: needinfo?(james)
Status: UNCONFIRMED → RESOLVED
Closed: 6 days ago
Duplicate of bug: 1802307
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.