<div id="test" data-a-bc-d="test"></div> <script> alert( document.getElementById( "test" ).dataset.aBcD ); </script>