Skip to content
Permalink
Browse files

Fixed issues with @* and @foo selectors. Ticket #2

  • Loading branch information
jeresig committed Jun 16, 2006
1 parent 4c572bd commit 7eb6a25d5e223053a1ebc824c78bf854a755ccd0
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery/jquery.js
@@ -496,7 +496,6 @@ $.g = {
disabled: "a.disabled",
checked: "a.checked"
},
// TODO: Write getAttribute helper
".": "$.hasWord(a,m[2])",
"@": {
"=": "$.attr(a,m[3]) == m[4]",
@@ -661,7 +660,7 @@ $.filter = function(t,r,not) {
}

while ( t.length > 0 && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) {
var re = new RegExp( "^\\[ *@([a-z0-9\\(\\)_-]+) *([~!\\|\\*$^=]*) *'?\"?([^'\"]*)'?\"? *\\]", "i" );
var re = new RegExp( "^\\[ *@([a-z0-9\\*\\(\\)_-]+) *([~!\\|\\*$^=]*) *'?\"?([^'\"]*)'?\"? *\\]", "i" );
var m = re.exec(t);

if ( m !== null ) {

0 comments on commit 7eb6a25

Please sign in to comment.
You can’t perform that action at this time.