Support matching both class and id