SIA-R13<iframe> elements have an accessible name

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

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

Applicability

This rule applies to every <iframe> element in the HTML namespace where the element is included in the accessibility tree and does not have a negative tabindex.

Expectations

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

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

This <iframe> element has an accessible name that is not empty and therefore passes the rule:

<iframe title="List of Contributors" src="../page-one.html"></iframe>

Failed

This <iframe> element has no accessible name and therefore fails the rule:

<iframe src="../page-one.html"></iframe>

Inapplicable

This <iframe> element is not included in the accessibility tree and is therefore inapplicable:

<iframe style="display:none;" src="../page-one.html"></iframe>

This <iframe> element has a negative tabindex.

<iframe tabindex="-1" src="../page-one.html"></iframe>

Acknowledgments

This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/cae760/proposed/. Copyright © 2023 W3C® (MIT, ERCIM, Keio, Beihang).