Assert_select '[foo|=bar]' bug?

just for the record, i tried searching the archives on this one but
would get an application error when i tried entering |= in the search

assert_select ‘[foo|=bar]’ behaviour does not seem to jive with the css

is there some reason i don’t know about for this or is it a genuine bug?