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
189b2d22
Commit
189b2d22
authored
Dec 20, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Selector: update Sizzle
Fix #14584 (cherry picked from commit
29c80033
)
parent
36c3f32f
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
16 deletions
+22
-16
bower.json
bower.json
+1
-1
sizzle.js
src/sizzle/dist/sizzle.js
+15
-11
sizzle.min.js
src/sizzle/dist/sizzle.min.js
+2
-2
sizzle.min.map
src/sizzle/dist/sizzle.min.map
+1
-1
selector.js
src/sizzle/test/unit/selector.js
+3
-1
No files found.
bower.json
View file @
189b2d22
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"bower.json"
"bower.json"
],
],
"dependencies"
:
{
"dependencies"
:
{
"sizzle"
:
"1.10.1
4
"
"sizzle"
:
"1.10.1
5
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"requirejs"
:
"~2.1.8"
,
"requirejs"
:
"~2.1.8"
,
...
...
src/sizzle/dist/sizzle.js
View file @
189b2d22
/*!
/*!
* Sizzle CSS Selector Engine v1.10.1
4
* Sizzle CSS Selector Engine v1.10.1
5
* http://sizzlejs.com/
* http://sizzlejs.com/
*
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* Released under the MIT license
* http://jquery.org/license
* http://jquery.org/license
*
*
* Date: 2013-1
1-27
* Date: 2013-1
2-20
*/
*/
(
function
(
window
)
{
(
function
(
window
)
{
...
@@ -614,7 +614,13 @@ setDocument = Sizzle.setDocument = function( node ) {
...
@@ -614,7 +614,13 @@ setDocument = Sizzle.setDocument = function( node ) {
// setting a boolean content attribute,
// setting a boolean content attribute,
// since its presence should be enough
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
// http://bugs.jquery.com/ticket/12359
div
.
innerHTML
=
"<select><option selected=''></option></select>"
;
div
.
innerHTML
=
"<select t=''><option selected=''></option></select>"
;
// Support: IE8, Opera 10-12
// Nothing should be selected when empty strings follow ^= or $= or *=
if
(
div
.
querySelectorAll
(
"[t^='']"
).
length
)
{
rbuggyQSA
.
push
(
"[*^$]="
+
whitespace
+
"*(?:''|
\"\"
)"
);
}
// Support: IE8
// Support: IE8
// Boolean attributes and "value" are not treated correctly
// Boolean attributes and "value" are not treated correctly
...
@@ -631,18 +637,16 @@ setDocument = Sizzle.setDocument = function( node ) {
...
@@ -631,18 +637,16 @@ setDocument = Sizzle.setDocument = function( node ) {
});
});
assert
(
function
(
div
)
{
assert
(
function
(
div
)
{
// Support: Opera 10-12/IE8
// ^= $= *= and empty values
// Should not select anything
// Support: Windows 8 Native Apps
// Support: Windows 8 Native Apps
// The type a
ttribute is
restricted during .innerHTML assignment
// The type a
nd name attributes are
restricted during .innerHTML assignment
var
input
=
doc
.
createElement
(
"input"
);
var
input
=
doc
.
createElement
(
"input"
);
input
.
setAttribute
(
"type"
,
"hidden"
);
input
.
setAttribute
(
"type"
,
"hidden"
);
div
.
appendChild
(
input
).
setAttribute
(
"
t"
,
"
"
);
div
.
appendChild
(
input
).
setAttribute
(
"
name"
,
"D
"
);
if
(
div
.
querySelectorAll
(
"[t^='']"
).
length
)
{
// Support: IE8
rbuggyQSA
.
push
(
"[*^$]="
+
whitespace
+
"*(?:''|
\"\"
)"
);
// Enforce case-sensitivity of name attribute
if
(
div
.
querySelectorAll
(
"[name=d]"
).
length
)
{
rbuggyQSA
.
push
(
"name"
+
whitespace
+
"*[*^$|!~]?="
);
}
}
// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
...
...
src/sizzle/dist/sizzle.min.js
View file @
189b2d22
This diff is collapsed.
Click to expand it.
src/sizzle/dist/sizzle.min.map
View file @
189b2d22
This diff is collapsed.
Click to expand it.
src/sizzle/test/unit/selector.js
View file @
189b2d22
...
@@ -316,7 +316,7 @@ test("class", function() {
...
@@ -316,7 +316,7 @@ test("class", function() {
});
});
test
(
"name"
,
function
()
{
test
(
"name"
,
function
()
{
expect
(
1
3
);
expect
(
1
4
);
var
form
;
var
form
;
...
@@ -342,6 +342,8 @@ test("name", function() {
...
@@ -342,6 +342,8 @@ test("name", function() {
t
(
"Find elements that have similar IDs"
,
"[name=tName1]"
,
[
"tName1ID"
]
);
t
(
"Find elements that have similar IDs"
,
"[name=tName1]"
,
[
"tName1ID"
]
);
t
(
"Find elements that have similar IDs"
,
"[name=tName2]"
,
[
"tName2ID"
]
);
t
(
"Find elements that have similar IDs"
,
"[name=tName2]"
,
[
"tName2ID"
]
);
t
(
"Find elements that have similar IDs"
,
"#tName2ID"
,
[
"tName2ID"
]
);
t
(
"Find elements that have similar IDs"
,
"#tName2ID"
,
[
"tName2ID"
]
);
t
(
"Case-sensitivity"
,
"[name=tname1]"
,
[]
);
});
});
test
(
"multiple"
,
function
()
{
test
(
"multiple"
,
function
()
{
...
...
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