"Member for" needs a h3 tag instread of h4 to pass accessibility check

Created on 2 July 2025, 10 days ago

Problem/Motivation

In D10.4 / 10.5 Editora11y complains about a h4 tag in /user/?ed1ref=/user/ because the previous level h3 was skipped.

Steps to reproduce

Open a member page on a site with with CKeditor and Editora11y installed. The accessibility information icon in the bottom right corner shows a warning about the headings not following a sequential order.

Proposed resolution

changing h4 to h3 in the tags in line 308 of /core/modules/user/user.module resolves the issue. This is the original line:

'#markup' => '<h4 class="label">' . t('Member for') . '</h4> ' . \Drupal::service('date.formatter')->formatTimeDiffSince($account->getCreatedTime()),

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.5

Component

user.module

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024