Added a fix for empty attribute selection values. Fixes jQuery bug #3990.

This commit is contained in:
John Resig 2009-02-07 17:41:30 +00:00
parent 31597b7b3c
commit f38648c7cd
2 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,7 @@
*/
(function(){
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
done = 0,
toString = Object.prototype.toString;