> Is there a way to get all tags that do not have a particular class ?

Your example seems to contradict your question.

> <a class="abc xyz">123</a>
> <a class="abc xyz">456</a>
> <a class="abc">789</a>

> I only want to get the first 2 a tags.

Those would be the 2 a tags that _do_ have a particular class that the
3rd a does not have, no?

'a.xyz' or 'a.abc.xyz' will get the first 2 tags only.

'a:not(.xyz)' or 'a.abc:not(.xyz)' will get the 3rd one only.

-- Sandy


Reply via email to