disallows duplicated attributes on same element (no-dup-attr)

HTML disallows two or more attributes with the same (case-insensitive) name.

Browsers handles duplication differently and thus this is a source for bugs.

Rule details

Examples of incorrect code for this rule:

<div class="foo" class="bar"></div>
1:18 - Attribute "class" duplicated

Examples of correct code for this rule:

<div class="foo bar"></div>