element . dataset Returns a DOMStringMap object for the element's data-* attributes.(# source)
[...] The custom data attributes is transformed to a key for the DOMStringMap entry [...](# source)
Or more specifically, only 'DOMStrings' are allowed.