Inappropriate Iframe Negative Tabindex Attribute Check
Description
The “Inappropriate Iframe Negative Tabindex Attribute Check” evaluates whether any <iframe> element with a tabindex="-1" attribute (which removes it from the tab order) contains an interactive element.
Example outcome
I identified 1 <iframe> element with a negative tabindex that includes interactive elements.
Impact
- Visual Impairments: Screen reader users may not be able to access iframe content.
- Motor Impairments: Users can’t tab into the iframe to interact with buttons/forms.
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.