function getData(el, name) {
  const attr = BASEATTR + name;

  const val = el.getAttribute(attr);

  // IE 8 returns a number if it's a number
  return !utils.existy(val) ? val : String(val);
}
Get data attributes

@param {Object} el The DOM element.
@param {String} name The attribute name.
@returns {String}