Using the HTML DOM, I would like to select almost all td tags except for those td tags that have a class-attribute of "xyz".

With document.selectElementsByTagname["td"] I can get all the td-elements. However, I don't want all but only those where the class-attribute != "xyz".

Since there are no predicates in html DOM, I currently don't see a way to achieve this. Is there still a way to do it?