Re: Question - <img role="img" src="someimage.png" alt="ok alternative">

Hi,

The issue, though, if I understand the spec is that the element is no longer an HTML IMG element – as, it has been re-rolled as an ARIA “Custom” HTML element of type “img”.

Which means, or should mean, that the alt attribute is no longer considered to be a natural attribute of this ARIA “Custom” HTML element of type “img”.  So, step D, in the Acc Name Calc does not apply…

Thoughts?

Alistair

---

Alistair Garrison
Director of Accessibility Research
Level Access (formerly SSB Bart Group)

From: Tobias Christian Jensen <tcj@siteimprove.com>
Date: Friday, 11 August 2017 at 11:29
To: Wilco Fiers <wilco.fiers@deque.com>, Alistair Garrison <alistair.garrison@levelaccess.com>
Cc: Accessibility Conformance Testing <public-wcag-act@w3.org>
Subject: RE: Question - <img role="img" src="someimage.png" alt="ok alternative">

Hi,

A good question. I did not immediately have an answer, but Kasper pointed out to me that according to the spec here: https://www.w3.org/TR/accname-aam-1.1/#terminology (section 2.D) the Alt attribute will be correctly outputted as the Accessible Name, since no aria-label, aria-labelledby or aria-describedby are set.

/Tobias

From: Wilco Fiers [mailto:wilco.fiers@deque.com]
Sent: 11. august 2017 12:16
To: Alistair Garrison <alistair.garrison@levelaccess.com>
Cc: Accessibility Conformance Testing <public-wcag-act@w3.org>
Subject: Re: Question - <img role="img" src="someimage.png" alt="ok alternative">

Hi Alistair,
I don't see why that should be a violation, unless there are AT that don't support it, in which case it's an accessibility support question. My take on things generally is that if it works in AT, it passes, regardless of what the specs say. WCAG doesn't tell you to follow specs, it tells you to make something that works in AT.

Wilco

On Fri, Aug 11, 2017 at 10:21 AM, Alistair Garrison <alistair.garrison@levelaccess.com<mailto:alistair.garrison@levelaccess.com>> wrote:
Hi,

<img role="img" src="someimage.png" alt="ok alternative">

I wanted to gain reaction from the ACT TF with regard to this piece of code.  Assume the alt text is a verified ok alternative description for the image.

The question being – does this element have a valid or invalid mechanism for calculating an Accessible Name (with regard to a strict interpretation of aria, with no heuristic guessing)?

Very interested to hear thoughts / comments

Alistair

---

Alistair Garrison
Director of Accessibility Research
Level Access (formerly SSB Bart Group)




--
Wilco Fiers
Senior Accessibility Engineer - Co-facilitator WCAG-ACT - Chair Auto-WCAG
[cid:image001.gif@01D31296.A2A1BF60]

Received on Friday, 11 August 2017 10:40:55 UTC