Object Tags Missing Equivalent Text

Object Tags Missing Equivalent Text

WCAG Focus: WCAG 1.1.1 (A)

The HTML <object> element is occasionally used in WordPress to embed SVG diagrams, PDF viewers, or interactive media. When an <object> tag contains no inner fallback text or accessible label, assistive technologies cannot convey what the embedded resource represents.

Why This Pattern Violates WCAG

WCAG 1.1.1 Non-text Content (Level A) and Technique H53 require providing a text alternative inside the body of the <object> element (or via aria-label / title when appropriate).

Code Comparison

Inaccessible Object Embed

<object data="/files/org-chart.svg" type="image/svg+xml"></object>

Compliant Object Embed With Equivalent Text

<object data="/files/org-chart.svg" type="image/svg+xml" aria-label="Company Organization Chart">
  <p>View our <a href="/team/">text-based organization directory</a>.</p>
</object>

How to Fix It in WordPress

  • Place descriptive fallback text or an accessible link inside the <object> tag body.
  • Add an aria-label or title attribute when embedding interactive SVGs or media.

Finding This Issue Automatically

Legacy embeds using <object> often sit unnoticed inside archived WordPress posts. Running the WP ADA Compliance Check plugin flags <object> tags missing text alternatives so older content stays compliant alongside new posts.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide