:contains(text) 1.1.4 A string of text to look for. It's case sensitive. Select all elements that contain the specified text.

The matching text can appear directly within the selected element, in any of that element's descendants, or a combination thereof. As with attribute value selectors, text inside the parentheses of :contains() can be written as a bare word or surrounded by quotation marks. The text must have matching case to be selected.

Finds all divs containing "John" and underlines them. John Resig
George Martin
Malcom John Sinclair
J. Ohn
]]>