attr-lowercase
Attribute name must be lowercase.
Level: Error
Config value
Section titled “Config value”true: enable rulefalse: disable rule['fooBar', 'Test']: enable rule except for the given attribute names. All SVG camelCase properties are included, for exampleviewBox
Example
Section titled “Example”{ ... "attr-lowercase": ['fooBar'] ...}The following pattern is not considered a rule violation:
Section titled “The following pattern is not considered a rule violation:”<img src="test.png" alt="test" />
<!-- known SVG attributes are ignored --><svg width="200" height="200" viewBox="0 0 200 200" />The following pattern is considered a rule violation:
Section titled “The following pattern is considered a rule violation:”<img SRC="test.png" ALT="test" />Why this rule is important
Section titled “Why this rule is important”Lowercase attribute names are required for HTML5 compliance and to ensure consistency across different HTML elements.