diff --git a/lib/compile.js b/lib/compile.js
index <HASH>..<HASH> 100644
--- a/lib/compile.js
+++ b/lib/compile.js
@@ -107,10 +107,22 @@ function containsTraversal(t) {
     return t.some(isTraversal);
 }
 
+function stripQuotes(str) {
+    var firstChar = str.charAt(0);
+
+    if (firstChar === str.slice(-1) && (firstChar === "'" || firstChar === '"')) {
+        str = str.slice(1, -1);
+    }
+
+    return str;
+}
+
 filters.not = function(next, select, options) {
     var opts = options ? { xmlMode: !!options.xmlMode, strict: !!options.strict } : null,
         func;
 
+    select = stripQuotes(select);
+
     if (options && options.strict) {
         var tokens = parse(select);
         if (tokens.length > 1 || tokens.some(containsTraversal)) {
compile: strip quotation marks from :not

fixes #<I>