Title should not contribute to accName for generic elements
scottaohara opened this issue · 8 comments
see the title of this issue. authors 'shouldn't' be naming generics, but a title could provide a name if no other method is provided - but it's probably the author's intent to provide a description in these cases (what good that will do, i don't know).
related to w3c/aria#1981
closing #495 since apparently i had filed similar before
What is the change you are suggestion, specifically, in HTML? I'm just confused about why this issue is here...
Discussed in today's meeting: https://www.w3.org/2023/11/02-aria-minutes.html#t10
It was decided to schedule a deep dive for this topic.
I interpret @scottaohara's request to be the #comp_tooltip step in AccName should be changed from:
…if the current node has a Tooltip attribute, return its value.
To:
…if the current node does not have a computed role of
generic
, and has a Tooltip attribute, return its value.
If I'm correct, then @spectranaut is right that this issue should be moved from HTML-AAM to AccName.
But then if title
is not exposed as label on a generic, where should it be exposed? This is author-provided, human-readable text, and sometimes in the case of poorly coded sites, this is the only information an SR user has to go on. I'd object to a WG decision to suppress title
(even on generics) from AT users unless there was another means to access that info.
this issue should be moved from HTML-AAM to AccName
it is already in AccName: "If the root node's role prohibits naming, return the empty string"
But then if title is not exposed as label on a generic, where should it be exposed?
title is usually used for description. This means that a div with a title could theoretically have a description but no name. But then Accname would also have to be changed (see above quote from Accname). Whether this makes sense is another question, as the AT normally does not output a description for generic elements.
Whether this makes sense is another question, as the AT normally does not output a description for generic elements.
And the engines don't usually expose a generic element with no label, so there may be nothing to hang the description on.