Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Broke >, ~, +, etc - fixed.

  • Loading branch information...
commit bcc8a837055fe720579628d758b7034d6b520f2e 1 parent a2206b7
@jeresig jeresig authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/jquery/jquery.js
View
13 src/jquery/jquery.js
@@ -1110,7 +1110,7 @@ jQuery.extend({
* @test t( "Adjacent", "p + p", ["ap","en","sap"] );
* @test t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] );
* @test t( "First Child", "p:first-child", ["firstp","sndp"] );
- * @test t( "Attribute Exists", "a[@title]", ["google"] );
+ * @test t( "Attribute Exists", "a[@title]", ["google"] );
* @test t( "Attribute Exists", "*[@title]", ["google"] );
* @test t( "Attribute Exists", "[@title]", ["google"] );
* @test t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
@@ -1238,11 +1238,12 @@ jQuery.extend({
}
}
- if ( t ) {
- var val = jQuery.filter(t,r);
- ret = r = val.r;
- t = jQuery.trim(val.t);
- }
+ }
+
+ if ( t ) {
+ var val = jQuery.filter(t,r);
+ ret = r = val.r;
+ t = jQuery.trim(val.t);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.