Ensure <iframe> and <frame> Elements Contain the axe-core Script

Photo of Researcher
Yotam Flohr
Researcher
Blind Hearing
WCAG 2.1 Level A

Written and researched for humans by humans

Photo of Researcher
Yotam Flohr
Researcher
Photo of Expert
Ritvik Shrivastava
Expertly reviewed by
Comments: 0
Your entire domain
Get detailed instructions on how to resolve every accessibility issue on your website

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.