1 | # selector-attribute-operator-blacklist
|
2 |
|
3 | **_Deprecated: Instead use the [`selector-attribute-operator-disallowed-list`](../selector-attribute-operator-disallowed-list/README.md) rule._**
|
4 |
|
5 | Specify a list of disallowed attribute operators.
|
6 |
|
7 |
|
8 | ```css
|
9 | [target="_blank"] {}
|
10 | /** ↑
|
11 | * This operator */
|
12 | ```
|
13 |
|
14 | ## Options
|
15 |
|
16 | `array|string`: `["array", "of", "operators"]|"operator"`
|
17 |
|
18 | Given:
|
19 |
|
20 | ```
|
21 | ["*="]
|
22 | ```
|
23 |
|
24 | The following patterns are considered violations:
|
25 |
|
26 |
|
27 | ```css
|
28 | [class*="test"] {}
|
29 | ```
|
30 |
|
31 | The following patterns are _not_ considered violations:
|
32 |
|
33 |
|
34 | ```css
|
35 | [target] {}
|
36 | ```
|
37 |
|
38 |
|
39 | ```css
|
40 | [target="_blank"] {}
|
41 | ```
|
42 |
|
43 |
|
44 | ```css
|
45 | [class|="top"] {}
|
46 | ```
|