querySelector but for parent nodes