- turn compare_attr into an accumulatedClassList.