Skip to content

Commit

Permalink
Added requirement for querySelectorAll, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
triblondon committed Jan 22, 2014
1 parent fb02aef commit 87a3a81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions feature-detects/queryselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"property": "queryselector",
"caniuse": "queryselector",
"tags": ["queryselector"],
"authors": ["Andrew Betts (@triblondon)"]
"authors": ["Andrew Betts (@triblondon)"],
"notes": [{
"name" : "W3C Selectors reference",
"href": "http://www.w3.org/TR/selectors-api/#queryselectorall"
}]
}
!*/
/* DOC
Expand All @@ -13,5 +17,5 @@ Detects support for querySelector.
*/
define(['Modernizr'], function( Modernizr ) {
Modernizr.addTest('queryselector', 'querySelector' in document);
Modernizr.addTest('queryselector', 'querySelector' in document && 'querySelectorAll' in document);
});

0 comments on commit 87a3a81

Please sign in to comment.