Object element rendering non-text content is missing accessible name
| Field | Value |
|---|---|
| Rule code | Object_NoText_Name_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 1.1.1 Non-text Content |
| Must be fixed at source | No |
Description
We detected an object which renders non-text content that is missing an accessible name. Some screen readers announce object elements even if they do not have an accessible name, while others skip the element. If an object is used to render decorative content, to ensure it is marked as decorative and can be ignored by all major screen readers a presentational role is necessary. If the content is not decorative, it must be assigned an appropriate label.
How to fix
If the content that is rendered using the object element is meaningful, add a descriptive label to the object. The label should describe the purpose or contents of the media, and must be concise and descriptive. If the object is rendering decorative content, a role of presentation can be used to indicate to screen readers that the object is decorative.