I\'m playing around with the attr-data-* attributes of HTML5 and the corresponding javascript dataset
I\'m doing alot of dynamic form processing, so I end up getting
Don't forget about JSON.stringify and JSON.parse.
var data = document.getElementById('someElement').dataset; data = JSON.parse(JSON.stringify(data));
According to Mozilla this should work all the way back to IE 8 without a polyfill.