WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: WCAG 2.1 2.5.3 Label in name

for

From: Peter Krautzberger
Date: Oct 1, 2019 9:07AM


Bryan Garaventa's implementation at [1] is also very useful to quickly test
some markup.

Peter.

[1]
https://whatsock.github.io/w3c-alternative-text-computation/Editable%20Live%20Input%20AccName%20Test.html

Am Di., 1. Okt. 2019 um 17:02 Uhr schrieb Steve Green <
<EMAIL REMOVED> >:

> It's pretty well described at
> https://www.w3.org/WAI/WCAG21/Understanding/label-in-name.html#accessible-name-and-description-computation-specification
>
> The first thing is to work out what the accessible name is. If your code
> is something like "Learn more <span class="hidden">about sausages</span>",
> the accessible name will be "Learn more about sausages".
>
> It must be possible to obtain the visible label by removing zero or more
> characters from the start and end of the accessible name. So "more about
> sausages" would be fine, as would "more", but "more sausages" or "pork
> sausages" would not.
>
> Steve
>
>
>