No Code Attached Yet a11y
avatar mbennett417
mbennett417
19 Jan 2024

Steps to reproduce the issue

In Joomla 5.0.2 when creating an article containing a table, run the Checker and it will give an Accessibility Error on the table because it lacks a header. The table has a correct header line that displays correctly.

Expected result

This should not receive and Accessibility error.

Actual result

I expect it works correctly for users with screen readers, but it's incorrect for the developer.

System information (as much as possible)

Joomla 5.0.2 (including previous 5.x versions)
PHP 8.1.27
Database 10.6.16-MariaDB
Litespeed webserver
Hosted on Rochen

Additional comments

I've tried this on different sites and have gotten the same results every time. It just doesn't seem to "see" the thead tag.

avatar mbennett417 mbennett417 - open - 19 Jan 2024
avatar mbennett417 mbennett417 - change - 19 Jan 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jan 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jan 2024
avatar mbennett417 mbennett417 - change - 19 Jan 2024
The description was changed
avatar mbennett417 mbennett417 - edited - 19 Jan 2024
avatar chmst chmst - change - 19 Jan 2024
Labels Added: a11y
avatar chmst chmst - labeled - 19 Jan 2024
avatar brianteeman
brianteeman - comment - 19 Jan 2024

Please post the html code for the table you are creating.

avatar mbennett417
mbennett417 - comment - 19 Jan 2024

Kind of a monster but here is is.
FAQ.txt

avatar brianteeman
brianteeman - comment - 19 Jan 2024

The accessibility checker is correct. You do not have valid table headers
You have

	<thead>
		<tr class="h3" style="height: 50px; text-align: center;">
			<td style="text-align: center;"><span style="font-size: 18pt;"><strong>Question</strong></span></td>
			<td style="text-align: center;"><span style="font-size: 18pt;"><strong>Answer</strong></span></td>
		</tr>
	</thead>

Correct code would be

	<thead>
		<tr class="h3" style="height: 50px; text-align: center;">
			<th style="text-align: center;"><span style="font-size: 18pt;"><strong>Question</strong></span></th>
			<th style="text-align: center;"><span style="font-size: 18pt;"><strong>Answer</strong></span></th>
		</tr>
	</thead>
avatar mbennett417
mbennett417 - comment - 19 Jan 2024

OK, thanks. I didn't understand (obviously) the role that th plays.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42678.

avatar Quy Quy - change - 19 Jan 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-01-19 21:09:08
Closed_By Quy
avatar Quy Quy - close - 19 Jan 2024
avatar Quy
Quy - comment - 19 Jan 2024

Closing as not a core issue. Thanks Brian!

avatar brianteeman
brianteeman - comment - 19 Jan 2024

It's awesome that you are testing and trying to be accessible

Add a Comment

Login with GitHub to post a comment