-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Born accessible table summary #9845
Comments
cc @whatwg/a11y |
Your use case seems to be screen reader users who cannot see the table structure. If so, the information you describe is already generated automatically by the browser and screen reader via the accessibility tree, so it's not immediately apparent what you're proposing? |
+1 to what @LJWatson said - information about the overall structure is already conveyed programmatically and exposed by screen readers/AT (whether or not SRs have then idiosyncratic ways of how they announce this structure is a topic to discuss with the respective SR developers). while SRs don't (currently/generally) go into much more detail (such as listing the full set of column and row headers, in isolation), that's generally (from my experience anyway) something that an SR user will explore for themselves once they're in the table. if, as an author, you want to convey this extra information though, there are various other mechanisms already available - such as using |
Also |
hah, snap, I just updated my previous comment (mentioning |
Thanks for your answers. My usecase concerns screen readers that see the HTML DOM tree, but do not calculate any accessibility summary (as far I know). The PS: I am still puzzled with the |
As noted, the structural aspects of the table are already conveyed (number of columns and rows) and authors do not need to state that information. Since a summary would (or should) be tailored to the audience as much as the data, creation is rightly left to authors. All H73 does is tell authors which attribute to use (for HTML4 and XHTML) for that summary, not that the browser creates the summary. |
What problem are you trying to solve?
HTML5 has removed plain text @summary attribute on tables.
Accessibility tables summaries and general tables summaries should be different:
As consequence, both tables' summaries should be distinguished, which is still not possible in HTML5.
An accessibility summary is always a plain text (this includes table's summary). The so called
<summary>
tag under a<details>
tag is rather a label for what follows. As a matter of fact, the table's summary should not be put in the<summary>
tag, but in its following<p>
tag.https://kb.daisy.org/publishing/docs/html/tables-summary.html
What solutions exist today?
When no general summary is needed, we now need to create a highly complicated HTML structure for a simple accessiblity summary:
<table> / <caption> / <details> / <summary> + <p>
.When two summaries are needed, we are forced to merge both summaries into one, which is not satisfactory for people without a visual impairment.
How would you solve it?
The complex hierarchy of
<table> / <caption> / <details> / <summary> + <p>
is perfectly suitable for general summaries.For accessibility summaries, why not simply add an @alt attribute on tables?! That would be much easier for everybody, i.e. HTML authors, and AT developpers.
Anything else?
No response
The text was updated successfully, but these errors were encountered: