Skip to content
Permalink
Browse files

Added support for (basic) nested parens and (basic) nested brackets. …

…You can now do: div:not(.foo[a:not(.even)]) or div[p[a.even]].
  • Loading branch information
jeresig committed Jan 9, 2007
1 parent 76d6d44 commit aa424984f7c37956f568512aa94bc16787e4c651
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/selector/selector.js
@@ -70,10 +70,10 @@ jQuery.extend({
"\\[ *(@)S *([!*$^=]*) *('?\"?)(.*?)\\4 *\\]",

// Match: [div], [div p]
"(\\[)\\s*(.*?)\\s*\\]",
"(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]",

// Match: :contains('foo')
"(:)S\\(\"?'?([^\\)]*?)\"?'?\\)",
"(:)S\\(\"?'?(.*?(\\(.*?\\))?[^(]*?)\"?'?\\)",

// Match: :even, :last-chlid
"([:.#]*)S"

0 comments on commit aa42498

Please sign in to comment.
You can’t perform that action at this time.