Fixed issue with CSS selectors using cleaned document