If scope selector contains '$', only consider document scopes