Well, some sites do things like <div class="h1"> which is stupid and it doesn't work there, since parsing for something like contains h1 would be too error prone. But it does work on #title and .title, which are equally wrong but also have wider usage.