Skip to content

presentation-role-style

Reports role="presentation".

none and presentation mean the same, and ARIA 1.2 prefers none. Using one name keeps the files uniform.

To fix, write role="none".

Reported
...
<a role="link">x</a>
...
<div role="navigation"></div>
<p role="presentation"></p>
<p role="none"></p>
angular:
lint:
rules:
presentation-role-style: warn # off (default), warn, error
html:
lint:
rules:
presentation-role-style: warn # off (default), warn, error
svelte:
lint:
rules:
presentation-role-style: warn # off (default), warn, error
vue:
lint:
rules:
presentation-role-style: warn # off (default), warn, error

Enabled 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.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
html-validate presentation-role-style full