This issue is for collecting initial feedback on the first broadly distributed draft of a new section titled Providing Accessible Names and Descriptions. This section is planned for publication in release 4 of Authoring Practices 1.1 in late July 2019.
Feedback from this issue and other channels is being incorporated into a revised version of the naming and describing section.
Pull request #1062 will merge the revisions to master on July 10 in preparation for the APG call for consensus to publish that will be made to the ARIA working group at that time.
I'm having a difficult time understanding the behavior of the caption element in tables, specifically how its behavior changes when a label is applied to the containing table.
http://w3c.github.io/aria-practices/#describing_with_captions
Is it true that the caption is cast to help text in the case that the table has a label?
@mcking65 Matt,
I think this is very good. One thing I would like to see added is in Section 5.1 one or to sentences about what a screen reader does with the information. Something like:
Screen readers typically speak the role of the element (e.g. link, image, textbox, table, switch..) and then the accessible name for the element. If there is an accessible description, by default screen readers usually speak that information last. Accessible names therefore should not include role information and should be the same content as the visible labels provided people who can see the content. Names should be short and if more detailed explanation is needed on the purposed of the named element an accessible description can be added to the element.
There is a lot of really good information in this section. Just a few comments...
The language sometimes feels a bit too complicated. For example the duplication in "fundamental and important"; the re-enforcement of "effective and reliable"; very emotive words like "devistating"; and superfluous words like "cardinal".
The rules look good, but suggest they would be better placed in the Using ARIA specification, which is already a known reference for the rules of using ARIA (ping @stevefaulkner). The AP is already enormous (with nearly 300 headings and 1,000+ links).
On a similar note, it seems that the accessible name and description calculations should be normatively referenced from their origin specs, instead of duplicated in the AP.
In 5.3.1.3 it says:
In HTML documents, whenever possible, rely on HTML naming techniques, such as the HTML label element, alt attribute for images, caption element for tables, etc. While less flexible, their simplicity and reliance on visible text help ensure robust accessible experiences.>
The alt attribute doesn't rely on visible text, so it seems out of place in the opening sentence of the paragraph.
@mcking65
I think this section 5..4.1 on aria-details needs more work, since aria-details is poorly implemented by screen reader and apparently by looking at the Core AAM the AX API (macOS) has no mapping at all for aria-details, so not going to be available on macOS. The spec says that some accessibility APIs may only provide one if both are present, but states that aria-details will take precedence. Looking at Core AAM it doesn't seem there is any conflict in providing both, other than it will be an advantage to do so macOS, since AX API it can still provide information on aria-describedby.
@mcking65 The section 4.1.4 Descriptions Derived from Titles
also seems to include aria-details in the discussion of accessible description calculation, is this really true that aria-details will trump other description techniques?
I agree with Léonie regarding referencing the accessible name computation rather than duplicating it. There is already an issue whereby the github.w3c and w3.org websites contain different versions of the accessible name computation (one includes placeholder and the other doesn't) even though both documents have the same version number. The last thing we need is a third version.
There is an anomaly whereby a data table constructed using ARIA (role="table") MUST have an accessible name, but neither the HTML specification nor WCAG 2.1 require
Most helpful comment
There is a lot of really good information in this section. Just a few comments...
The language sometimes feels a bit too complicated. For example the duplication in "fundamental and important"; the re-enforcement of "effective and reliable"; very emotive words like "devistating"; and superfluous words like "cardinal".
The rules look good, but suggest they would be better placed in the Using ARIA specification, which is already a known reference for the rules of using ARIA (ping @stevefaulkner). The AP is already enormous (with nearly 300 headings and 1,000+ links).
On a similar note, it seems that the accessible name and description calculations should be normatively referenced from their origin specs, instead of duplicated in the AP.