elem-dataset
v2.0.0
Published
HTML5 HTMLElement.dataset ponyfill
Downloads
26,531
Maintainers
Readme
elem-dataset
HTML5
HTMLElement.dataset
ponyfill
Note that "true" and "false" values are not allowed on boolean attributes.
Install
$ npm install --save elem-dataset
Usage
import elementDataset from 'elem-dataset';
const element = document.querySelector('.foo');
const attributes = elementDataset(element);
License
MIT © Alex Cross