move data-* fields to base element