added support for chained :contains() selectors