What to use instead of CONTAINS() in CSS3
The only functionality in CSS which is similar to contains() is:
element[attribute*="substring"]
It is helpful when you need to check some substring which contains in the attribute.
You can use jQuery :contains(text)
<script src="https://code.jquery.com/jquery-1.10.2.js"></script><script> $( "div:contains('foo')" ).css( "text-decoration", "underline" );</script>