Require a single space or disallow whitespace after operators within attribute selectors.
在特性(attribute)选择器的操作符之后要求有一个空格或禁止有空白。
[target= _blank]
/** ↑
* The space after operator */
string: "always"|"never"
"always"
There must always be a single space after the operator.
在操作符之后必须有一个空格。
The following patterns are considered warnings:
以下模式被认为是个警告:
[target=_blank] {}
[target =_blank] {}
[target='_blank'] {}
[target="_blank"] {}
[target ='_blank'] {}
[target ="_blank"] {}
The following patterns are not considered warnings:
以下模式正常:
[target] {}
[target= _blank] {}
[target= '_blank'] {}
[target= "_blank"] {}
[target = _blank] {}
[target = '_blank'] {}
[target = "_blank"] {}
"never"
There must never be a single space after the operator.
在操作符之后禁止有空格。
The following patterns are considered warnings:
以下模式被认为是个警告:
[target= _blank] {}
[target = _blank] {}
[target= '_blank'] {}
[target= "_blank"] {}
[target = '_blank'] {}
[target = "_blank"] {}
The following patterns are not considered warnings:
以下模式正常:
[target] {}
[target=_blank] {}
[target='_blank'] {}
[target="_blank"] {}
[target =_blank] {}
[target ='_blank'] {}
[target ="_blank"] {}