mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Selector: Rename rcombinators to rleadingCombinator
Closes gh-5208
This commit is contained in:
parent
582785e047
commit
ac1c59a354
@ -92,7 +92,7 @@ var i,
|
||||
rwhitespace = new RegExp( whitespace + "+", "g" ),
|
||||
|
||||
rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
|
||||
rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" +
|
||||
rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" +
|
||||
whitespace + "*" ),
|
||||
rdescend = new RegExp( whitespace + "|>" ),
|
||||
|
||||
@ -270,7 +270,7 @@ function find( selector, context, results, seed ) {
|
||||
// as such selectors are not recognized by querySelectorAll.
|
||||
// Thanks to Andrew Dupont for this technique.
|
||||
if ( nodeType === 1 &&
|
||||
( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
|
||||
( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {
|
||||
|
||||
// Expand context for sibling selectors
|
||||
newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
|
||||
@ -1527,7 +1527,7 @@ function tokenize( selector, parseOnly ) {
|
||||
matched = false;
|
||||
|
||||
// Combinators
|
||||
if ( ( match = rcombinators.exec( soFar ) ) ) {
|
||||
if ( ( match = rleadingCombinator.exec( soFar ) ) ) {
|
||||
matched = match.shift();
|
||||
tokens.push( {
|
||||
value: matched,
|
||||
|
Loading…
Reference in New Issue
Block a user