WebAIM - Web Accessibility In Mind

E-mail List Archives

when is the "title" attribute used in the accessible name computation?

for

From: glen walker
Date: May 30, 2018 9:56AM


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