-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Table Block: add caption support #11589
Comments
Right, there is currently no caption support. |
this issue has been closed, but in my Wordpress version 5.5 i do not have caption support in the Table block, is that correct? Or have i missed it? |
One year later and the Tables block still doesn't support captions and doesn't use ARIA labels to connect figcaptions with tables, either. |
Table blocks should support captions since WordPress 5.4: @michaelmcpeek The implementation does use a An implementation using the table #24205 discusses changing the caption implementation (and aria labels aren't the right way to connect a caption to a table). |
|
Describe the bug
When creating a table block, you have to manually edit the HTML if you want to include a caption on the table. A
<caption>
is allowed to be the first child of a<table>
element for accessibility purposes as described in https://www.w3.org/WAI/tutorials/tables/caption-summary/ and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/captionTo Reproduce
Steps to reproduce the behavior:
<caption>
element just inside the<table>
elementExpected behavior
This should not produce an error, and should be treated as acceptable markup. Bonus points if the table block editor straight up supported captions, as well as thead/tfoot without having to manually editing the HTML of the table.
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: