Page MenuHomePhabricator

Add aria-labelledby attribute to the section elements generated by Parsoid
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
<section> elements generated by Parsoid should have aria-labelledby attribute, with the ID of the nearest heading as a value.

Benefits (why should this be implemented?):
<section> is assigned a "generic" ARIA role without this attribute, i.e. it's semantically meaningless; with the presence of this attribute, however, it's being assigned a "region" ARIA role, which is a landmark role and denotes "document areas the author deems significant", with all benefits of a landmark role (more semantics for the page, more navigation for screen reader users, ...).

Event Timeline

Change #1202751 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/services/parsoid@master] T406897: Add aria-labelledby to <section> tags to improve accessibility

https://gerrit.wikimedia.org/r/1202751

Change #1203156 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] T406897: Add aria-labelledby to <section> tags to improve accessibility

https://gerrit.wikimedia.org/r/1203156

Change #1202751 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/services/parsoid@master] T406897: Add aria-labelledby to <section> tags to improve accessibility

https://gerrit.wikimedia.org/r/1202751

Change #1202751 abandoned by C. Scott Ananian:

[mediawiki/services/parsoid@master] T406897: Add aria-labelledby to <section> tags to improve accessibility

Reason:

Abandoned in favor of I3433cb6279647ca504cc87de7dcc5fa38d86688c

https://gerrit.wikimedia.org/r/1202751

Change #1203156 merged by jenkins-bot:

[mediawiki/core@master] T406897: Add aria-labelledby to <section> tags to improve accessibility

https://gerrit.wikimedia.org/r/1203156

matmarex assigned this task to cscott.
matmarex subscribed.