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
You can use Object.assign
Object.assign({}, element.dataset)
For browsers that doesn't support Object.assign you can use polyfill