presentation-role-style
What it does
Section titled “What it does”Reports role="presentation".
Why it matters
Section titled “Why it matters”none and presentation mean the same, and ARIA 1.2 prefers none. Using one name keeps the files uniform.
To fix, write role="none".
Example
Section titled “Example”...<a role="link">x</a>...<div role="navigation"></div><p role="presentation"></p><p role="none"></p>Configuration
Section titled “Configuration”angular: lint: rules: presentation-role-style: warn # off (default), warn, errorhtml: lint: rules: presentation-role-style: warn # off (default), warn, errorsvelte: lint: rules: presentation-role-style: warn # off (default), warn, errorvue: lint: rules: presentation-role-style: warn # off (default), warn, errorEnabled by the presets: html/html-validate-recommended.
Suppress one line with sudsy-disable-next-line presentation-role-style in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-validate | presentation-role-style |
full |