Dieser Inhalt ist derzeit nur auf Englisch verfügbar
Audit frame-title
Ensure <iframe> and <frame> elements have an accessible name
Impact:
Serious
WCAG-Konformität:
A
WCAG 4.1.2
Issue types:
failure, needs review
Iframe element has non-empty accessible name
This rule checks that each `iframe` element has a non-empty accessible name.
Content loading...
Autoren: Jey Nandakumar, Tom Brunet, Wilco Fiers
Finanzierung: WAI-Tools
Applicability
This rule applies to iframe elements that are included in the accessibility tree except if at least one of the following is true:
the iframe has a negative tabindexattribute value; or
the iframe is marked as decorative.
Expectation
Each target element has an accessible name that is not empty ("").
Background
The frame element is deprecated, this rule does not consider frame or frameset elements.
Due to inconsistencies in handling focus on iframe, this rule ignores iframe elements for which there is an attempt to hide them from assistive technologies. Whether iframe elements that are inapplicable to this rule still require an accessible name varies between browsers.
Browser and assistive technology support for iframe elements is currently inconsistent. Some examples of inconsistencies include (but are not limited to):
There is a known combination of a popular browser and assistive technology that ignores aria-label and only announces title attribute as an accessible name
Some assistive technologies ignore empty iframe elements, regardless of if they are focusable or if they have an accessible name.
Some browsers instantly redirect focus from iframe elements to the first focusable element inside that iframe. This redirect makes it appear as though the iframe never receives focus. This occurs even if the iframe has a non-negative tabindexattribute value.
Not all browsers redirect focus on iframe elements. This ensures that the contents of iframe elements can be scrolled and accessed by using the keyboard. This must not be circumvented by using a negative tabindex, as this will make the iframe completely inaccessible for keyboard navigation.