The data-[name] attribute on elements can now be accessed directly via the DOM using element.dataset.[attr].

Try openning the Web Console and editing element.dataset directly:
element.dataset.foo = 'bar';

Not connected

This element has data
[click buttons above to show element html]