TemplateForensics: treat span element as formatting element if it has a non-empty class or style attribute and no other attributes