Skip to main content

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 problems:

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

The following patterns are not considered problems:

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