mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added fix for multiple attribute selectors w/ test cases.
This commit is contained in:
parent
269ff25860
commit
afbd2e37c9
5
src/jquery/jquery.js
vendored
5
src/jquery/jquery.js
vendored
@ -1089,6 +1089,9 @@ jQuery.extend({
|
||||
* @test t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
|
||||
* @test t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] );
|
||||
* @test t( "Attribute Equals", "a[@rel=bookmark]", ["simon1"] );
|
||||
* @test t( "Multiple Attribute Equals", "input[@type='hidden'],input[@type='radio']", ["hidden1","radio1","radio2"] );
|
||||
* @test t( "Multiple Attribute Equals", "input[@type=\"hidden\"],input[@type='radio']", ["hidden1","radio1","radio2"] );
|
||||
* @test t( "Multiple Attribute Equals", "input[@type=hidden],input[@type=radio]", ["hidden1","radio1","radio2"] );
|
||||
*
|
||||
* @test t( "Attribute Begins With", "a[@href ^= 'http://www']", ["google","yahoo"] );
|
||||
* @test t( "Attribute Ends With", "a[@href $= 'org/']", ["mark"] );
|
||||
@ -1286,7 +1289,7 @@ jQuery.extend({
|
||||
.replace( 'S', "([a-z*_-][a-z0-9_-]*)" )
|
||||
|
||||
// Look for something (optionally) enclosed with quotes
|
||||
.replace( 'Q', " *'?\"?([^'\"]*)'?\"? *" ), "i" );
|
||||
.replace( 'Q', " *'?\"?([^'\"]*?)'?\"? *" ), "i" );
|
||||
|
||||
var m = re.exec( t );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user