Iframe Negative Tabindex Attribute Check
Description
The “Iframe Negative Tabindex Attribute Check” evaluates whether all <iframe> elements with a tabindex="-1" attribute (which removes it from the tab order) do not contain interactive elements.
Example outcome
I noticed that there are no interactive elements inside <iframe> elements with a negative tabindex attribute.
Impact
- Visual Impairments: Screen readers may not reach the content if not programmatically reachable.
- Motor Impairments: Users can’t tab into the iframe to access forms, buttons, etc.
- Cognitive Disabilities: Individuals with cognitive disabilities can’t complete tasks (like submitting a form) if navigation is blocked.
Fixes
To address <iframe> elements with an inappropriate negative tabindex attribute:
- Locate the
<iframe>element with an inappropriate negativetabindexattribute. - Remove the negative
tabindexfrom the element.