Page MenuHomePhabricator

Registration page uses headings incorrectly, breaking accessibility (WCAG 2.2)
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:
On the right, a 'benefits-container' is shown. It uses <h3> header tags for the three metrics shown (createacct-benefit-head1 and further).

The current markup is seen as misuse of html semantics: at least by one Dutch WCAG accessibility audit for one Mediawiki. It conflicts with WCAG 2.2 A success criterion 1.3.1 as well as WCAG 2.2 AA SC 2.4.6.

A practical consequence: someone using text reader/braille software, could request a table of contents for the page to navigate around. They would get this confusing index:

H1: Create account
H2: Wikipedia is made by people like you.
H3: 522,449
H3: 1,489
H3: 18

What should have happened instead?:
Use regular div or span without assigning the role of header. Preferably also for the H2

Software version (skip for WMF-hosted wikis like Wikipedia):
At least MW 1.33 to latest test (1.41.0-wmf.7).