From a3e97062d42ad6ee1c5feff9382a854768703d54 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Mon, 28 Jul 2008 16:34:46 +0000 Subject: [PATCH] jquery selector: closes #3023. The attribute filter accepts ':'. --- src/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector.js b/src/selector.js index 36d5dde54..6dcab37fe 100644 --- 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-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,