Comparing version 1.3.0 to 1.3.1
@@ -10,3 +10,3 @@ /** | ||
//TODO: third query param - include self | ||
//TODO: .closest, .all, .next, .prev, .parent, .mathes etc methods - all with the same API: query(selector, [el], [incSelf], [within]). | ||
//TODO: .closest, .all, .next, .prev, .parent, .filter, .mathes etc methods - all with the same API: query(selector, [el], [incSelf], [within]). | ||
//TODO: .all('.x', '.selector'); | ||
@@ -13,0 +13,0 @@ //TODO: use universal pseudo mapper/filter instead of separate ones. |
var q = require('..'); | ||
var doc = require('get-doc'); | ||
/** CSS4 matches */ | ||
function matches(el, selector){ | ||
if (!el.parentNode) { | ||
var fragment = doc.createDocumentFragment(); | ||
fragment.appendChild(el); | ||
} | ||
return q.all(selector, el.parentNode).indexOf(el) > -1; | ||
@@ -6,0 +11,0 @@ } |
{ | ||
"name": "queried", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Query selector CSS4 +", | ||
@@ -36,3 +36,4 @@ "main": "css4.js", | ||
"assert": "^1.3.0", | ||
"chai": "~1.10.0" | ||
"chai": "~1.10.0", | ||
"domify": "~1.3.1" | ||
}, | ||
@@ -39,0 +40,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10734
244
6