Validate known attributes
Add a new rule validating known attributes and yield an error if the attribute isn't known.
Examples
Correct:
<!-- local attribute -->
<a href=".."></p>
<!-- global attribute -->
<a class="foo"></a>
<!-- custom data -->
<a data-foobar="baz"></a>
<!-- scripting -->
<a onclick=".."></a>
<!-- aria -->
<a aria-label="lorem ipsum"></a>
Incorrect:
<p alt="lorem ipsum"><p>
Options
Might be useful to have a list of whitelisted prefixes such as on
, data-
, etc and let plugins add additional such as v-
, ng-
, etc.