-
Notifications
You must be signed in to change notification settings - Fork 266
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
H39 Using caption elements to associate data table captions with data tables needs a rewritten test #2136
Comments
I created a pull request that makes these changes. I also adjusted the wording of the original third bullet in the procedure, because H39 does not cover the quality of the text used to title a table; only that the text be coded as a caption |
@mbgower I don't think that there is anything wrong with H39 as written. IF you want to apply the technique, then all three checks must pass. If you don't want to apply the technique (possibly because the table is a layout table, possibly because the table doesn't need a caption) that is ok too, because those won't meet the technique (the same is true for the original or modified wording). |
Also, how did you change the final bullet? It looks the same? |
to me #2137 makes sense, as it doesn't substantially change anything, but just adds a reminder of what the scope of the technique itself is (i.e. |
@awkawk I agree it is possible to read it that way. But I also have someone arguing that this procedure means you need to have a caption, period, and we should have an automated rule that checked for captions and flagged the absence on any table.. I don't want that to be inferred, and I also think the wording of the third bullet ("Check that the content of the caption element identifies the table.") over-reached what this technique is covering (it's 1.3.1, not 2.4.6). |
New wording (with additional commit) is:
|
They may still argue that. :) If making a change, I think that we might want to stick to "title" as that is what the HTML spec uses for caption element content.
|
Either is fine with me. The original language of the 3rd bullet had "identifies" so I tried to use that, then on @patrickhlauke's suggestion, changed it to "describes"/ "description", but I think just 'title' is sufficient. |
@awkawk Are there any other tags I should add to this? |
@mbgower not sure what "this" means here ... |
@awkawk any other tags to add to this issue? it could be 'wcag 2.2' but it could be for 2.x (for which there is no tag) |
Ah, you mean GitHub labels, got it. Two years ago the labels you have would have been fine. Chairs may have others to route now, not sure. |
The WCAG 2.0/1/2 labels are used for which version the SC was introduced in, so in this case I've added WCAG 2.0. Helps to work out how many issues are raised or open against which SCs. |
hah, i clearly misunderstood these labels until now, as i thought it was more about which versions are affected, and/or in which version it's likely to get some kind of change made (keeping in mind that older WCAG versions are cast in amber for eternity) |
I just ran into this issue IRL. Do we need a PR for this to move it ahead? |
closed by #2137 |
Update to address #2136 Tighten the language of [H39 Using caption elements to associate data table captions with data tables](https://www.w3.org/WAI/WCAG22/Techniques/html/H39) to isolate it to only passing 1.3.1 Info and Relationships: 1. if there is a visible text title/caption for the table, then 2. make sure it is referenced so that the title/caption is programmaticalyy associated. --------- Co-authored-by: Patrick H. Lauke <[email protected]> Co-authored-by: Francis Storr <[email protected]>
H39 is considered sufficient to meet an aspect of 1.3.1; however, the context needs to be better expressed, and the test rewritten to reflect the fact that a caption for a table is not needed.
1.3.1 Info and Relationships states:
If text exists that seems to provide a name or title for a table, then 1.3.1 requires that there be programmatic indication and proper association for the caption.. That's where H39 comes from.
But if there is no visible text name/title for the table, then there is nothing conveyed through presentation. Therefore 1.3.1 doesn't apply.
Rather than a 3-step test procedure, the test should be written as a conditional:
Existing
Proposed
For each data table that has content that is presented as a table title or caption:
The text was updated successfully, but these errors were encountered: