Skip to content

no-role-on-meta-elements

Detect role/aria-* on meta elements.

Severity

error

❌ Incorrect

html
<meta name="x" content="y" role="presentation">

✅ Correct

html
<div role="button">x</div>

Reference

Configuration

json
{
  "rules": {
    "no-role-on-meta-elements": "error"
  }
}

Released under the MIT License.