aria-hidden-body

The document <body> must not be aria-hidden

automaticWCAG 1.3.1, 4.1.2 (A)confidence: highseverity: criticalperceivable

Checks that <body> does not have aria-hidden="true", which would remove the entire page from the accessibility tree.

Applies to. Always applicable to any HTML document with a <body> element, independent of contextSelector/root scoping, this is a whole- document concern, matching page-title-present's pattern of evaluating document.body directly rather than the scoped root.

Expectation. <body> does not have aria-hidden="true". Hiding the document body removes the entire page's content and structure from the accessibility tree at once, both 1.3.1 (Info and Relationships: the page's structure becomes entirely non-determinable) and 4.1.2 (Name, Role, Value: nothing in the document exposes a role/name/value any longer) apply.

Examples

pass
<body>Hi</body>

The document `<body>` is not `aria-hidden`.

fail
<body aria-hidden="true">Hi</body>

Hiding `<body>` removes the entire page from the accessibility tree at once.

View source