Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dataset test.

  • Loading branch information...
commit 46154285bb79b61a816c3de92e0005eb00f11033 1 parent 8ec0b25
@paulirish paulirish authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 feature-detects/dom-dataset.js
View
9 feature-detects/dom-dataset.js
@@ -0,0 +1,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");
+});
Please sign in to comment.
Something went wrong with that request. Please try again.