星号 CSS 规则错误

Asterisk CSS rule error

前段时间我在一个高度赞成的答案中发现了这段代码:

[class*="col-"] {
  ...
}

Aptana Studio 给我这个错误:

Syntax Error: unexpected token "*"

那么,这真的是一个错误吗?我的意思是我在一个有很多赞成票的答案中找到了它。

我试图说服自己放弃我项目中的红色标记,我几乎一周都做得很好,但我忍不住要问... :)

不,这不是错误。见 the spec:

[att*=val]
Represents an element with the att attribute whose value contains at least one instance of the substring "val". If "val" is the empty string then the selector does not represent anything.