Rule
Object alt text
<object> embeds must have a text alternative.
- Rule
object-alt- WCAG 2.2
- 1.1.1 Non-text Content (opens in a new tab) (Level A)
- Severity
- Serious
What it checks
An <object> needs a text alternative: an accessible name such as aria-label, or fallback text between its tags. An object that embeds non-text content and has neither fails, because people who cannot see it get nothing.
When a person decides
An object that declares a text document, by a type such as text/html or application/pdf, or by a file extension such as .pdf when there is no type, is sent for review instead. The document has text of its own, so the question is only whether the page identifies it.
Example
Fails
<object data="org-chart.svg" type="image/svg+xml" width="600" height="400"></object>
Passes
<object data="org-chart.svg" type="image/svg+xml" width="600" height="400">
<p>The chief executive leads three teams: finance, operations and research.</p>
</object>
The engine is tested against both examples.
How to fix it
Put a text version of the content between the <object> tags, or add an aria-label that gives the same information.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.