summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/dom-dataset.js
blob: 810ff50bb7723a35fb640fde78892e980f5679e1 (plain)
1
2
3
4
5
6
7
8
9

// dataset API for data-* attributes
// test by @phiggins42

Modernizr.addTest('dataset', function(){
  var n = document.createElement("div");
  n.setAttribute("data-a-b", "c");
  return !!(n.dataset && n.dataset.aB === "c");
});