Fixed parsing of selectors with attributes