iframe-name-present

Frames have an accessible name

automaticWCAG 4.1.2 (A)confidence: highseverity: seriousrobust

Checks that <iframe>/<frame> elements expose a non-empty accessible name via aria-label, aria-labelledby, or the title attribute.

Applies to. Applies to <iframe>/<frame> elements that are eligible for the accessibility tree (isAccTreeEligible) AND reachable by sequential focus navigation, both conditions required, regardless of role.

Expectation. The element has a non-empty accessible name via aria-labelledby, aria-label, or the title attribute. Unlike most interactive elements, an iframe's name is never derived from its rendered content (the embedded document is a separate browsing context), this mirrors dialog-name-present's "name-from-author-only" reasoning.

Examples

pass
<iframe title="Video player" src="content.html"></iframe>

The `title` attribute names the frame.

fail
<iframe src="content.html"></iframe>

No `title`, `aria-label`, or `aria-labelledby`.

View source