Remove the attributes not required for the skipped element