Why is the data duplicated in the data attribute and class?