Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 748 Bytes

File metadata and controls

54 lines (40 loc) · 748 Bytes

selector-attribute-name-disallowed-list

Specify a list of disallowed attribute names.

    [class~="foo"] {}
/**  ↑
 * This name */

Options

array|string|regex: ["array", "of", /names/ or "regex"]|"name"|/regex/

Given:

["class", "id", "/^data-/"]

The following patterns are considered violations:

[class*="foo"] {}
[id~="bar"] {}
[data-foo*="bar"] {}

The following patterns are not considered violations:

[lang~="en-us"] {}
[target="_blank"] {}
[href$=".bar"] {}