Skip to content

24 ways to impress your friends

Vote up?

Paolo Priotto

And all the hassle because the [class|=pod] selector is so dumb. Why can’t it recognize “bar pod-bar” ? It does recognize “pod-bar bar”!
Anyway, I think as long as markup and styling are in one hand, you can pretty easily ensure (or even lint/hint/validate) that your module library classes (pod, pod-bar etc.) are always the first ones in the class string, and that your class string has no whitespaces. So I’m gonna go with this fine and overlooked selector.
Great article by the way!