# ARIA Deprecated Role

> ARIA roles must not use deprecated values. Browsers and assistive technology may no longer support them, so elements can be announced wrongly or not at all.

Source: https://knowledge.evinced.com/web/web-validations/aria-deprecated-role

ARIA roles must not use deprecated values.

ARIA roles provide important semantic information to assistive technologies. However, some ARIA roles have been officially deprecated and should no longer be used. Deprecated roles are often no longer supported across browsers and assistive technologies, which can result in inconsistent or inaccessible user experiences. Instead of using these outdated roles, developers should rely on native HTML elements that provide similar semantics or adopt recommended alternatives.

**Deprecated ARIA roles:**

1.  `directory`  
    Used for a list of references to members of a group (like a Table of Contents). Its recommended alternatives are `list` or a native `<ul>` or `<ol>`. For navigation, use the `<nav>` landmark.
2.  `doc-biblioentry` (from the [DPUB-ARIA specification](https://www.w3.org/TR/dpub-aria-1.1/))  
    Its recommended alternative is `listitem`.
3.  `doc-endnote` (from the [DPUB-ARIA specification](https://www.w3.org/TR/dpub-aria-1.1/))  
    Its recommended alternative is `listitem`.

## Pass Patterns

### Using a valid ARIA role

This example uses a valid ARIA role: `paragraph`.

```html
<div role="paragraph">
    <!-- The paragraph text -->
</div>
```

### Using native HTML

This example uses a native HTML list element, which conveys the correct semantics without needing an ARIA role. The native structure provides all necessary semantic information to assistive technologies.

```html
<ul>
    <li>Note 1</li>
    <li>Note 2</li>
</ul>
```

## Fail Patterns

### Using the deprecated `directory` role

`role="directory"` is deprecated and may not be interpreted consistently by assistive technologies.

```html
<ul role="directory">
    <li>Folder A</li>
    <li>Folder B</li>
</ul>
```

### Using the deprecated `doc-endnote` role

`role="doc-endnote"` is deprecated. Use a standard list item instead.

```html
<ol>
    <li role="doc-endnote">Reference 1</li>
    <li role="doc-endnote">Reference 2</li>
</ol>
```

## ACT Rules

-   [Role attribute has valid value](https://www.w3.org/WAI/standards-guidelines/act/rules/674b10/)

## Try It Yourself

### Inspecting the browser dev-tools

1.  Open your browser's dev tools and select the element in the Elements panel.
2.  Check the value of its `role` attribute against the list of deprecated roles.
3.  In the Accessibility panel, check the **Role** the browser exposes.

**Expected results:** The element uses a supported role, and the Accessibility panel exposes it correctly.

**Actual results:** The element may be missing from the accessibility tree, have no role, or be exposed with its native semantics, making it invisible or confusing to assistive technologies.

## FAQ

**How does this issue relate to 4.1.2 Name, role, value?**

This issue relates to SC 4.1.2 because using deprecated ARIA roles fails to provide name, role, or value information in a way that assistive technologies can interpret reliably. That breaks the accessibility requirement for exposing element semantics programmatically.

**Why is this issue marked as Minor?**

While deprecated ARIA roles do not always break functionality, they make it harder for assistive technology to interpret the page correctly, which can confuse users who depend on role information to navigate.

## Standards and Regulations

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [4.1.2 Name, Role, Value](https://www.w3.org/TR/WCAG22/#name-role-value) (A) | For all user interface components, the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to assistive technologies. |
| EN 301 549 | [9.4.1.2 Name, Role, Value](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |

## Personas impacted by this issue

-   [Screen Reader](https://knowledge.evinced.com/a11y-essentials/personas#screen-reader)
-   [Braille](https://knowledge.evinced.com/a11y-essentials/personas#braille)

## Related Issues

-   [aria-allowed-role](https://knowledge.evinced.com/web/web-validations/aria-allowed-role)
-   [aria-roles](https://knowledge.evinced.com/web/web-validations/aria-roles)
-   [interactable-role](https://knowledge.evinced.com/web/web-validations/interactable-role)
