Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
fc80c2f3
Commit
fc80c2f3
authored
Dec 16, 2014
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sizzle: update to 2.1.1-jquery.2.1.2 for back-compat
parent
e95b278c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
+23
-20
bower.json
bower.json
+1
-1
sizzle.js
src/sizzle/dist/sizzle.js
+19
-16
sizzle.min.js
src/sizzle/dist/sizzle.min.js
+2
-2
sizzle.min.map
src/sizzle/dist/sizzle.min.map
+1
-1
No files found.
bower.json
View file @
fc80c2f3
...
...
@@ -14,7 +14,7 @@
"package.json"
],
"devDependencies"
:
{
"sizzle"
:
"2.1.1"
,
"sizzle"
:
"2.1.1
-jquery.2.1.2
"
,
"requirejs"
:
"2.1.10"
,
"qunit"
:
"1.14.0"
,
"sinon"
:
"1.8.1"
...
...
src/sizzle/dist/sizzle.js
View file @
fc80c2f3
/*!
* Sizzle CSS Selector Engine v2.
1.1
* Sizzle CSS Selector Engine v2.
2.0-pre
* http://sizzlejs.com/
*
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-1
5
* Date: 2014-12-1
6
*/
(
function
(
window
)
{
...
...
@@ -74,21 +74,25 @@ var i,
// Regular expressions
// http://www.w3.org/TR/css3-selectors/#whitespace
//
Whitespace characters
http://www.w3.org/TR/css3-selectors/#whitespace
whitespace
=
"[
\\
x20
\\
t
\\
r
\
\n
\\
f]"
,
// http://www.w3.org/TR/css3-syntax/#characters
characterEncoding
=
"(?:
\\\\
.|[
\\
w-]|[^
\\
x00-
\\
xa0])+"
,
// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
identifier
=
"(?:
\\\\
.|[
\\
w-]|[^
\\
x00-
\\
xa0])+"
,
// Loosely modeled on CSS identifier characters
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
identifier
=
characterEncoding
.
replace
(
"w"
,
"w#"
),
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
attributes
=
"
\\
["
+
whitespace
+
"*("
+
identifier
+
")(?:"
+
whitespace
+
attributes
=
"
\\
["
+
whitespace
+
"*("
+
characterEncoding
+
")(?:"
+
whitespace
+
// Operator (capture 2)
"*([*^$|!~]?=)"
+
whitespace
+
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
"*(?:'((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
|("
+
identifier
+
"))|)"
+
whitespace
+
"*
\\
]"
,
pseudos
=
":("
+
identifier
+
")(?:
\\
(("
+
pseudos
=
":("
+
characterEncoding
+
")(?:
\\
(("
+
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
// 1. quoted (capture 3; capture 4 or capture 5)
"('((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
)|"
+
...
...
@@ -111,9 +115,9 @@ var i,
ridentifier
=
new
RegExp
(
"^"
+
identifier
+
"$"
),
matchExpr
=
{
"ID"
:
new
RegExp
(
"^#("
+
identifier
+
")"
),
"CLASS"
:
new
RegExp
(
"^
\\
.("
+
identifier
+
")"
),
"TAG"
:
new
RegExp
(
"^("
+
identifier
+
"|[*]
)"
),
"ID"
:
new
RegExp
(
"^#("
+
characterEncoding
+
")"
),
"CLASS"
:
new
RegExp
(
"^
\\
.("
+
characterEncoding
+
")"
),
"TAG"
:
new
RegExp
(
"^("
+
characterEncoding
.
replace
(
"w"
,
"w*"
)
+
"
)"
),
"ATTR"
:
new
RegExp
(
"^"
+
attributes
),
"PSEUDO"
:
new
RegExp
(
"^"
+
pseudos
),
"CHILD"
:
new
RegExp
(
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:
\\
("
+
whitespace
+
...
...
@@ -201,16 +205,15 @@ function Sizzle( selector, context, results, seed ) {
context
=
context
||
document
;
results
=
results
||
[];
nodeType
=
context
.
nodeType
;
if
(
!
selector
||
typeof
selector
!==
"string"
)
{
return
results
;
}
if
(
typeof
selector
!==
"string"
||
!
selector
||
nodeType
!==
1
&&
nodeType
!==
9
&&
nodeType
!==
11
)
{
if
(
(
nodeType
=
context
.
nodeType
)
!==
1
&&
nodeType
!==
9
&&
nodeType
!==
11
)
{
return
[];
return
results
;
}
if
(
documentIsHTML
&&
!
seed
)
{
if
(
!
seed
&&
documentIsHTML
)
{
// Try to shortcut find operations when possible (e.g., not under DocumentFragment)
if
(
nodeType
!==
11
&&
(
match
=
rquickExpr
.
exec
(
selector
))
)
{
...
...
src/sizzle/dist/sizzle.min.js
View file @
fc80c2f3
This diff is collapsed.
Click to expand it.
src/sizzle/dist/sizzle.min.map
View file @
fc80c2f3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment