WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: when is the "title" attribute used in the accessible namecomputation?

for

From: Bryan Garaventa
Date: May 30, 2018 12:13PM


Hi,
There is an open issue about this for the AccName 1.2 milestone at
https://github.com/w3c/accname/issues/10


Bryan Garaventa
Accessibility Fellow
Level Access, Inc.
<EMAIL REMOVED>
415.624.2709 (o)
www.LevelAccess.com

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: Wednesday, May 30, 2018 8:57 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [WebAIM] when is the "title" attribute used in the accessible name computation?

I thought I knew the answer because it seems like I read
https://www.w3.org/TR/accname-1.1/#step2 about once a month.

My original thought was that the title attribute is the last kid to get picked for for the kickball team. Step 2.I says "Otherwise, if the current node has a Tooltip attribute, return its value. Comment:
Tooltip attributes are used only if nothing else, including subtree content, has provided results."

However, when I was reading it today, step 2.D says "Otherwise, if the current node's native markup provides an attribute (e.g. title) or element (e.g. HTML label) that defines a text alternative, return that alternative..."

Is the title attribute really considered a "text alternative"? I've never considered it along the same lines as the alt attribute, but the spec specifically lists the title attribute as an example of a text alternative.

Should the attribute example in 2.D really be the alt attribute instead of the title attribute? The comment section for 2.D talks about the <img> element's alt attribute.

Glen