Deprecated ARIA roles must not be used
Roles removed from the ARIA specifications, such as `directory`, `doc-biblioentry` and `doc-endnote`, should be replaced with current roles, usually `list` or `listitem`, so assistive technology understands them.
| Rule ID | aria-deprecated-role |
|---|---|
| Impact | Minor |
| Success criterion | 4.1.2 Name, Role, Value · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed automatically |
Example
<ul role="directory">
<li><a href="#ch1">1. Getting started</a></li>
<li><a href="#ch2">2. Billing</a></li>
</ul>Depending on the screen reader, the list may lose its item count or be announced inconsistently.
<ul>
<li><a href="#ch1">1. Getting started</a></li>
<li><a href="#ch2">2. Billing</a></li>
</ul>Screen readers announce “list, 2 items” everywhere.
Why it matters
Browsers and screen readers stop supporting roles once the specification drops them. A deprecated role may still work in one combination and fail in another, so blind users get different results depending on their software. In the worst case the role is treated as invalid, and the element loses even the meaning HTML would have given it, such as being a list with a known number of items.
Screen reader users rely on list semantics to skim content: hearing “list, 12 items” tells them how long a table of contents or bibliography is before they enter it. Replacing deprecated roles keeps that information reliable across browsers and future versions, and keeps your code aligned with current standards.
How to fix it
Replace each deprecated role with its current equivalent, or remove it if the HTML element already has the right meaning.
directory was used for tables of contents. It became a synonym of list. On a ul or ol, simply remove it. On other elements, use role="list":
<div role="list" aria-label="Contents">
<div role="listitem"><a href="#ch1">Getting started</a></div>
</div>
doc-biblioentry marked entries in a bibliography. Use a plain li inside the doc-bibliography section:
<section role="doc-bibliography" aria-label="References">
<ol>
<li>Lee, A. (2024). Designing for everyone.</li>
</ol>
</section>
doc-endnote marked individual endnotes. Use li items inside a doc-endnotes section:
<section role="doc-endnotes" aria-label="Notes">
<ol>
<li id="note-1">Figures from the 2025 annual report.</li>
</ol>
</section>
Search your templates, CMS components and e-book export settings, since these roles often come from older publishing tools.
Checklist
- Remove role="directory" from ul and ol elements.
- Use role="list" where a non-list element needs list semantics.
- Replace doc-biblioentry and doc-endnote with plain li items.
- Check publishing templates that generate these roles.
How the check works
The check reads the role attribute of every element that has a non-empty one. It fails when the role is marked as deprecated in the ARIA or DPUB-ARIA specifications, for example directory, doc-biblioentry or doc-endnote. Any current, valid role passes this check.
Resources
Updated October 27, 2026