jquery selector: closes #3023. The attribute filter accepts ':'.
authorAriel Flesler <aflesler@gmail.com>
Mon, 28 Jul 2008 16:34:46 +0000 (16:34 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 28 Jul 2008 16:34:46 +0000 (16:34 +0000)
src/selector.js

index 36d5dde..6dcab37 100644 (file)
@@ -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-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,