CKeditor 5 tables are missing the scope attribute
When you create a table using CKeditor 5, data cells marked up as table headers don't receive the scope attribute. This is neccessary to make the table fully accessible. The issue has been reported on Drupal.org, but the folks at CKeditor don't see it as a priority to fix.
https://www.drupal.org/project/drupal/issues/3427076
A workaround module has been developed that provides a text format filter to process the table and set the correct scope attribute on each table header element.
https://www.drupal.org/project/table_header_scope_attribute
At today's accessibility meet-up, Hannah at Brighton said they have also developed a text format filter that does a similar thing - @andybroomfield
We have a module that can do that and some other accessibility fixes if you want to take it forward @BHCC-hannahharvey.
@andybroomfield I can package up our module and send it onwards.
@RyanFH257 - Its on my list to email you today following the accessibility meet-up :)
This sounds like a great idea, especially the "and some other accessibility fixes" part. Looking forward to checking it out @BHCC-hannahharvey.
@markconroy - Happy to send you over the code as well :)
Please do. Thanks.
@markconroy - Can you shoot me your email address please and I'll send the module over :-)
Can you package it up as a .zip file and upload it here so others can see it too? If not, DM me on Slack and I'll send you my email.
That would be better wouldn't it! Here is the .zip file - Any questions let me know :-)