add attribute support to selectors