X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fselector%2Fselector.js;h=83b27e933a25ba2ea3aeb93eaad098f1f1e7f8b3;hb=21d59e8de607e33c54cf8f7bff2c5f0b7a6c40f9;hp=bc250fe85a1671dae5708d1ebef337024f0cafae;hpb=e7a8310f654d5a656ebc7cec6b6480c77522bdfd;p=jquery.git diff --git a/src/selector/selector.js b/src/selector/selector.js index bc250fe..83b27e9 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -53,7 +53,7 @@ jQuery.extend({ // The regular expressions that power the parsing engine parse: [ // Match: [@value='test'], [@foo] - /^\[ *(@)([\w-]+) *([!*$^~|=]*) *('?"?)(.*?)\4 *\]/, + /^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/, // Match: [div], [div p] /^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/, @@ -347,7 +347,7 @@ jQuery.extend({ type == "!=" && z != m[5] || type == "^=" && z && !z.indexOf(m[5]) || type == "$=" && z.substr(z.length - m[5].length) == m[5] || - (type == "*=" || type == "|=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not ) + (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not ) tmp.push( a ); }