No Code Attached Yet
avatar keithgrimes
keithgrimes
23 Sep 2023

Steps to reproduce the issue

Create a new menu entry which is defined as a 'Category List'
Ensure the appropriate category is also selected.

Expected result

When rendering

****

Actual result

Articles
Title
** Printing your walks programme : Register to read more … **
****

System information (as much as possible)

Linux / mysql platform. PHP 8.0 / 8.1
Joomla 4.3.4

Additional comments

The file components/com_content/tmpl/category/default_articles.php line 174 states

            <th class="list-title" scope="row">

This should be

            <td class="list-title" scope="row">
Articles
Title
** Printing your walks programme : Register to read more … **
avatar keithgrimes keithgrimes - open - 23 Sep 2023
avatar joomla-cms-bot joomla-cms-bot - change - 23 Sep 2023
Title
[4.3.4] Category List uses <th> element within <tbody> where it should be <td>
[4.3.4] Category List uses element within where it should be
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Sep 2023
avatar chmst
chmst - comment - 23 Sep 2023

We use this in Joomla for accessibility of tables. The is not only for the table header but indicates the "main" cell in a row.
Here is a nice description: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th with example.

avatar richard67 richard67 - change - 23 Sep 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-09-23 14:37:25
Closed_By richard67
avatar richard67 richard67 - close - 23 Sep 2023
avatar richard67
richard67 - comment - 23 Sep 2023

Closing as expected behaviour. See the link in the previous comment for the explanation. It is perfectly valid to have a th in a table row in the tbody. The scope="row" makes clear that it is the row's header.

avatar keithgrimes
keithgrimes - comment - 23 Sep 2023

Many thanks for clarifying and for the quick response.

Add a Comment

Login with GitHub to post a comment