HTML5 data attribute naming convention test

An example of naming conventions that work and don't work in HTML data attributes

by junto

HTML

<div id="b" data-ida="a" data-idB="b" data-id-c="c" data-id-D="d" />

JavaScript

$("body").append($("#b").data("ida")+"<br/>");
$("body").append($("#b").data("idB")+"<br/>");
$("body").append($("#b").data("id-c")+"<br/>");
$("body").append($("#b").data("id-D")+"<br/>");