i thought of using ephemera for stripping out empty class attributes but i wasn't sure where the best place for that code live was. plus it would be way slower that way because you'd have to select $('[class=""]') in the document which might get hairy on large documents.