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
2a63b980
Commit
2a63b980
authored
Dec 12, 2011
by
timmywil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Sizzle.Expr.match.globalPOS for identifying POS selectors in traversing. Fixes #10970.
parent
9bea2167
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
sizzle
src/sizzle
+1
-1
traversing.js
src/traversing.js
+1
-1
traversing.js
test/unit/traversing.js
+5
-3
No files found.
sizzle
@
423f35af
Subproject commit
935874052e54b4686b4e69b653eb05cd6e25c447
Subproject commit
423f35af8bf43f3f07bb17284e21608f08372c22
src/traversing.js
View file @
2a63b980
...
@@ -6,7 +6,7 @@ var runtil = /Until$/,
...
@@ -6,7 +6,7 @@ var runtil = /Until$/,
rmultiselector
=
/,/
,
rmultiselector
=
/,/
,
isSimple
=
/^.
[^
:#
\[\.
,
]
*$/
,
isSimple
=
/^.
[^
:#
\[\.
,
]
*$/
,
slice
=
Array
.
prototype
.
slice
,
slice
=
Array
.
prototype
.
slice
,
POS
=
jQuery
.
expr
.
match
.
POS
,
POS
=
jQuery
.
expr
.
match
.
global
POS
,
// methods guaranteed to produce a unique set when starting from a unique set
// methods guaranteed to produce a unique set when starting from a unique set
guaranteedUnique
=
{
guaranteedUnique
=
{
children
:
true
,
children
:
true
,
...
...
test/unit/traversing.js
View file @
2a63b980
...
@@ -38,7 +38,7 @@ test("find(node|jQuery object)", function() {
...
@@ -38,7 +38,7 @@ test("find(node|jQuery object)", function() {
});
});
test
(
"is(String|undefined)"
,
function
()
{
test
(
"is(String|undefined)"
,
function
()
{
expect
(
29
);
expect
(
30
);
ok
(
jQuery
(
"#form"
).
is
(
"form"
),
"Check for element: A form must be a form"
);
ok
(
jQuery
(
"#form"
).
is
(
"form"
),
"Check for element: A form must be a form"
);
ok
(
!
jQuery
(
"#form"
).
is
(
"div"
),
"Check for element: A form is not a div"
);
ok
(
!
jQuery
(
"#form"
).
is
(
"div"
),
"Check for element: A form is not a div"
);
ok
(
jQuery
(
"#mark"
).
is
(
".blog"
),
"Check for class: Expected class 'blog'"
);
ok
(
jQuery
(
"#mark"
).
is
(
".blog"
),
"Check for class: Expected class 'blog'"
);
...
@@ -70,8 +70,10 @@ test("is(String|undefined)", function() {
...
@@ -70,8 +70,10 @@ test("is(String|undefined)", function() {
ok
(
jQuery
(
"#en"
).
is
(
"[lang=
\"
en
\"
] , [lang=
\"
de
\"
]"
),
"Comma-seperated; Check for lang attribute: Expect en or de"
);
ok
(
jQuery
(
"#en"
).
is
(
"[lang=
\"
en
\"
] , [lang=
\"
de
\"
]"
),
"Comma-seperated; Check for lang attribute: Expect en or de"
);
ok
(
jQuery
(
"#en"
).
is
(
"[lang=
\"
de
\"
] , [lang=
\"
en
\"
]"
),
"Comma-seperated; Check for lang attribute: Expect en or de"
);
ok
(
jQuery
(
"#en"
).
is
(
"[lang=
\"
de
\"
] , [lang=
\"
en
\"
]"
),
"Comma-seperated; Check for lang attribute: Expect en or de"
);
ok
(
!
jQuery
(
window
).
is
(
'a'
),
"Checking is on a window does not throw an exception(#10178)"
);
ok
(
!
jQuery
(
window
).
is
(
"a"
),
"Checking is on a window does not throw an exception(#10178)"
);
ok
(
!
jQuery
(
document
).
is
(
'a'
),
"Checking is on a document does not throw an exception(#10178)"
);
ok
(
!
jQuery
(
document
).
is
(
"a"
),
"Checking is on a document does not throw an exception(#10178)"
);
ok
(
jQuery
(
"#option1b"
).
is
(
"#select1 option:not(:first)"
),
"POS inside of :not() (#10970)"
);
});
});
test
(
"is(jQuery)"
,
function
()
{
test
(
"is(jQuery)"
,
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