Returns all HTML data-* attributes attached to an element.
data-*
dataset
Can be used as promise:const dataAttributes = getDataAttributes($el) Copy
Can be used as promise:const dataAttributes = getDataAttributes($el)
Use element.dataset, which this returns. Will be removed in goldies 6.0.
element.dataset
Returns all HTML
data-*attributes attached to an element.