user can specify element attributes to maintain