Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 791 Bytes

no-aria-hidden-body.md

File metadata and controls

29 lines (19 loc) · 791 Bytes

no-aria-hidden-body

🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

The aria-hidden attribute should never be present on the <body> element, as it hides the entire document from assistive technology.

Examples

This rule forbids the following:

<body aria-hidden>
<body aria-hidden="true">

This rule allows the following:

<body>

References