SIA-R63<object> elements have an accessible name

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

This rule checks that <object> elements have an accessible name.

Applicability

This rule applies to every <object> element in the HTML namespace that is included in the accessibility tree.

Expectations

  1. The element has an accessible name that is not empty.

Assumptions

This rule makes the following assumption:

  • The <object> element is not used to embed textual content, such as another HTML document. For this purpose, an <iframe> should instead be used.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

This <object> element has an accessible name given by its aria-label attribute.

<object aria-label="A placeholder image" data="https://picsum.photos/100" />

Failed

This <object> element has an empty accessible name.

<object data="https://picsum.photos/100" />

Inapplicable

This <object> element is not included in the accessibility tree:

<object aria-hidden="true" data="https://picsum.photos/100" />

There is no <object> element.

<img aria-label="A placeholder image" src="https://picsum.photos/100" />

Acknowledgments

This document includes material copied from or derived from https://act-rules.github.io/rules/8fc3b6/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).