w3c / html-aam

HTML Accessibility API Mappings
https://w3c.github.io/html-aam/
Other
97 stars 25 forks source link

Title should not contribute to accName for generic elements #506

Open scottaohara opened 9 months ago

scottaohara commented 9 months ago

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).

scottaohara commented 9 months ago

related to https://github.com/w3c/aria/issues/1981

closing https://github.com/w3c/html-aam/issues/495 since apparently i had filed similar before

spectranaut commented 9 months ago

What is the change you are suggestion, specifically, in HTML? I'm just confused about why this issue is here...

spectranaut commented 8 months ago

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.

cookiecrook commented 8 months ago

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.

cookiecrook commented 8 months ago

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.

JAWS-test commented 8 months ago

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.

cookiecrook commented 8 months ago

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.

MelSumner commented 8 months ago

@accdc and I have dug into this some more. I'd like to have a deepdive on this topic and I would like to present on the topic. We need a good date for this though, considering that holidays are soon.