15 Feb 2019
Type conversion must be handled in JavaScript.
Finally, we have the HTML5 dataset API which returns a DOMStringMap object. You should note that data-attribute names are mapped by dropping the data-
prefix, removing hyphens and converting to camelCase, e.g.