Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 857 Bytes

File metadata and controls

56 lines (41 loc) · 857 Bytes

selector-attribute-operator-whitelist

Deprecated: Instead use the selector-attribute-operator-allowed-list rule.

Specify a list of allowed attribute operators.

[target="_blank"] {}
/**    ↑
 * This operator */

Options

array|string: ["array", "of", "operators"]|"operator"

Given:

["=", "|="]

The following patterns are considered violations:

[class*="test"] {}
[title~="flower"] {}
[class^="top"] {}

The following patterns are not considered violations:

[target] {}
[target="_blank"] {}
[class|="top"] {}