Advanced CSS Selectors you never knew about
Andy Leverenz
2619

Actually, with your “equals” way, those two examples aren’t the same. Doing `div.foo` (as you know) finds has `.foo` as any of its classes. Doing `div[class=”foo”]` is finding divs that only have `.foo` and no other classes

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.