Here:
http://jsfiddle.net/B29NB/
All figure tags are yellow, but the ones that contain a figcaption are turned red (on this example).