utilize classList when supported (refs #5087)