parseSelector: rewrite