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: = 'bar';

Not connected

This element has data
[click buttons above to show element html]
HTML5 Powered with Connectivity / Realtime, Device Access, Graphics, 3D & Effects, Multimedia, Performance & Integration, Semantics, and Offline & Storage
Fork me on GitHub