w3c / accname

Accessible Name and Description Computation
https://w3c.github.io/accname/
61 stars 23 forks source link

2F - does name from content mean only name? #136

Closed kengdoj closed 3 years ago

kengdoj commented 3 years ago

In this example:

<a href=”#”><img alt=”baby shark” title=”doo doo doo”></a>

Would the link <a> have an accessible description?

questions about the following instructions:

2F: "if the current node's role allows name from content"

Related: 2F.iii.b: "Compute the text alternative... "

Thanks!

JAWS-test commented 3 years ago

If I understand this specification, https://www.w3.org/TR/svg-aam-1.0/#mapping_additional_nd and https://www.w3.org/TR/html-aam-1.0/#accessible-name-and-description-computation correctly, an element only has a description if the description is explicitly declared on the element (e.g. per title, aria-description, aria-describedby, value)

The content is never used as a description with the following exceptions:

In my opinion, the determination of Accessible Name and Description is so different from each other that it would be better to treat them in 2 separate chapters in this specification (see https://github.com/w3c/accname/issues/77)

kengdoj commented 3 years ago

Thank you, @JAWS-test. I agree that the separate computation instructions would be clearer.