git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23eeaf3
)
jquery selector: closes #3023. The attribute filter accepts ':'.
author
Ariel Flesler
<aflesler@gmail.com>
Mon, 28 Jul 2008 16:34:46 +0000
(16:34 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Mon, 28 Jul 2008 16:34:46 +0000
(16:34 +0000)
src/selector.js
patch
|
blob
|
history
diff --git
a/src/selector.js
b/src/selector.js
index
36d5dde
..
6dcab37
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-68,7
+68,7
@@
jQuery.extend({
// The regular expressions that power the parsing engine
parse: [
// Match: [@value='test'], [@foo]
- /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
+ /^(\[) *@?([\w:-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
// Match: :contains('foo')
/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,