attribute name case (attr-case)

Requires a specific case for attribute names.

Rule details

Examples of incorrect code for this rule:

<p ID="foo"></p>
1:4 - Attribute "ID" should be lowercase

Examples of correct code for this rule:

<p id="foo"></p>

Options

This rule takes an optional object:

{
    "style": "lowercase"
}

Style