dom-dataset.js 231 B

123456789
  1. // dataset API for data-* attributes
  2. // test by @phiggins42
  3. Modernizr.addTest('dataset', function(){
  4. var n = document.createElement("div");
  5. n.setAttribute("data-a-b", "c");
  6. return !!(n.dataset && n.dataset.aB === "c");
  7. });