Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.6 Headings and Labels - note regarding 1.3.1 #315

Open
jidaikobo-shibata opened this issue Feb 9, 2018 · 3 comments
Open

2.4.6 Headings and Labels - note regarding 1.3.1 #315

jidaikobo-shibata opened this issue Feb 9, 2018 · 3 comments

Comments

@jidaikobo-shibata
Copy link

2.4.6's criterion's note says:

Headings and labels must be programmatically determined, per Success Criterion 1.3.1 .
https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html#navigation-mechanisms-descriptive-techniques-head

But 1.3.1 allows text solution not just programmatically determination.

so, 2.4.6's note might be a misguiding of 1.3.1.

please consider about this. thanks.

@cstrobbe
Copy link

The note "Headings and labels must be programmatically determined, per Success Criterion 1.3.1 ." is not really "misguiding".

When applied to headings and labels, the phrase "or are available in text" in SC 1.3.1 strictly speaking only applies to formats that don't support programmatically determinable headings or labels. See the part of Understanding SC 1.3.1 that begins as follows:

Some technologies do not provide a means to programmatically determine some types of information and relationships.

In most formats that I have used, headings can be marked up in a way that allows them to be programmatically determinable. The only exception I am aware of is plain text (real plain text, not something like MarkDown, which is meant to be rendered as HTML or another format).

Labels are a bit trickier. In HTML, labels can be coded in a way that makes them programmatically determinable. However, neither Word nor PDF allow programmatic relationships between the visible label and a form field. Instead, the author is required to add an invisible label (typically repeating the same text as in the visible label) in a way that is similar to alt text for images. But at least those invisible "labels" are programmatically determinable.

@GreggVan
Copy link

GreggVan commented Jul 23, 2022 via email

@patrickhlauke
Copy link
Member

Even plain text headers can be detected if plain text standards are followed. (e.g. two blank lines before a header. One line of text. No period.

there's a lot of things that can be detected programmatically, but browsers/AT aren't doing it.

for instance, there was a whole discussion about 2.4.4 Link Purpose (In Context) and whether or not a preceding heading counts as context. it would be trivial for browsers/AT to programmatically find the previous heading that a link falls under (just walk the DOM tree backwards to find the closest preceding heading), but no browser/AT does it/exposes this. so it's the difference between "theoretically can be programmatically determined" versus "has actual support in the real world". #1097 #819 #1821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants