Permalink
Browse files

Merge branch 'w3c' into config

  • Loading branch information...
rvagg committed Feb 5, 2012
2 parents e518524 + 7d60b4e commit 638a5953b3688ec9e84e30e1db0b7cec74ab61a0
Showing with 1,375 additions and 2 deletions.
  1. +2 −1 config/smoosh.json
  2. +1 −1 src/qwery.js
  3. +1,372 −0 tests/W3C-Selector-tests.html
View
@@ -27,5 +27,6 @@
, "laxbreak": true
, "eqeqeq": false
, "eqnull": true
+ , "laxcomma": true
}
-}
+}
View
@@ -23,7 +23,7 @@
, specialChars = /([.*+?\^=!:${}()|\[\]\/\\])/g
, simple = /^(\*|[a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/
, attr = /\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/
- , pseudo = /:([\w\-]+)(\(['"]?([\s\w\+\-]+)['"]?\))?/
+ , pseudo = /:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/
// check if we can pass a selector to a non-CSS3 compatible qSA.
// *not* suitable for validating a selector, it's too lose; it's the users' responsibility to pass valid selectors
// this regex must be kept in sync with the one in tests.js
Oops, something went wrong.

0 comments on commit 638a595

Please sign in to comment.