#selector-attribute-operator-whitelist

Specify a whitelist of allowed attribute operators.

指定允许使用的特性(attribute)操作符的白名单。

[target="_blank"] {}
/**    ↑
 * These operators */

#Options

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

Given:

给出:

[ "=", "|=" ]

The following patterns are considered warnings:

以下模式被认为是个警告:

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

The following patterns are not considered warnings:

以下模式正常:

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