object-text-alternative-present

<object> must provide a text alternative

automaticWCAG 1.1.1 (A)confidence: highseverity: seriousperceivable

Checks that <object> elements provide a text alternative via fallback content or an accessible name.

Applies to. Applies to <object> elements included in the accessibility tree. Hidden objects are excluded whether or not they are focusable. role="presentation"/role="none" are excluded only when not focusable.

Expectation. Each applicable <object> provides a text alternative via:

  • fallback content (non-empty text content inside <object>), OR
  • an accessible name (aria-labelledby/aria-label), OR
  • a title attribute (best-effort fallback).

Examples

pass
<object data="chart.svg" type="image/svg+xml">Sales chart for 2024</object>

Fallback content between the tags counts as a text alternative.

fail
<object data="chart.svg" type="image/svg+xml"></object>

No fallback content and no accessible name.

View source