Simply, the specification for custom data attributes states that any attribute that starts with "data-" will be treated as a storage area for private data (private in the sense that the end user can't see it - it doesn't affect layout or presentation).
This allows you to write valid HTML markup (passing an HTML 5 validator) while, simultaneously, embedding data within your page
T. Malone, R. Laubacher, и C. Dellarocas. Research Paper, No. 4732-09. MIT, Sloan School of Management, Massachusetts Institute of Technology, Cambridge, MA, USA, (февраля 2009)
O. Medelyan, и I. Witten. JCDL '06: Proceedings of the 6th ACM/IEEE-CS joint conference on Digital libraries, стр. 296--297. New York, NY, USA, ACM, (2006)
R. Mihalcea, T. Chklovski, и A. Kilgarriff. Proceedings of SENSEVAL-3: Third International Workshop on the Evaluation of Systems for the Semantic Analysis of Text CD-ROM, стр. 25--28. (2004)
D. Milne, O. Medelyan, и I. Witten. ACM International Conference on Web Intelligence (WI 2006 Main Conference Proceedings)(WI'06), стр. 442--448. (2006)
Z. Minier, Z. Bodo, и L. Csato. International Symposium on Symbolic and Numeric Algorithms for Scientific
Computing, стр. 157–164. Timisoara, Romania, (2007)