Ensure <iframe> and <frame> Elements Contain the axe-core Script
Blind
Hearing
WCAG 2.2 Level A
Web accessibility standards all frames to be tested with axe-core.
Why It Matters
Without the axe-core script, it is not possible for the tool to check for violations on multiple levels of nested iframes.
Fixing the Issue
Ensure iframe and frame elements contain the axe-core script.
The after – function (optional) check is the function that gets called for checks that operate on a page-level basis, to process the results from the iframe elements.
The pageLevel ensures iframe and frame elements contain the axe-core script rule, when set to true, is only applied when the entire page is tested. Results from nodes on different frames are combined into a single result.