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
45729831
Commit
45729831
authored
May 20, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some cases of strict errors.
parent
90a87c03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
selector.js
src/selector.js
+3
-3
index.html
test/index.html
+2
-9
No files found.
src/selector.js
View file @
45729831
...
@@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
...
@@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
}
else
if
(
name
===
"not"
)
{
}
else
if
(
name
===
"not"
)
{
var
not
=
match
[
3
];
var
not
=
match
[
3
];
for
(
var
i
=
0
,
l
=
not
.
length
;
i
<
l
;
i
++
)
{
for
(
i
=
0
,
l
=
not
.
length
;
i
<
l
;
i
++
)
{
if
(
not
[
i
]
===
elem
)
{
if
(
not
[
i
]
===
elem
)
{
return
false
;
return
false
;
}
}
...
@@ -565,13 +565,13 @@ var Expr = Sizzle.selectors = {
...
@@ -565,13 +565,13 @@ var Expr = Sizzle.selectors = {
switch
(
type
)
{
switch
(
type
)
{
case
'only'
:
case
'only'
:
case
'first'
:
case
'first'
:
while
(
node
=
node
.
previousSibling
)
{
while
(
(
node
=
node
.
previousSibling
)
)
{
if
(
node
.
nodeType
===
1
)
return
false
;
if
(
node
.
nodeType
===
1
)
return
false
;
}
}
if
(
type
==
'first'
)
return
true
;
if
(
type
==
'first'
)
return
true
;
node
=
elem
;
node
=
elem
;
case
'last'
:
case
'last'
:
while
(
node
=
node
.
nextSibling
)
{
while
(
(
node
=
node
.
nextSibling
)
)
{
if
(
node
.
nodeType
===
1
)
return
false
;
if
(
node
.
nodeType
===
1
)
return
false
;
}
}
return
true
;
return
true
;
...
...
test/index.html
View file @
45729831
...
@@ -23,13 +23,6 @@
...
@@ -23,13 +23,6 @@
<script
type=
"text/javascript"
src=
"unit/css.js"
></script>
<script
type=
"text/javascript"
src=
"unit/css.js"
></script>
<script
type=
"text/javascript"
src=
"unit/traversing.js"
></script>
<script
type=
"text/javascript"
src=
"unit/traversing.js"
></script>
<script
type=
"text/javascript"
src=
"unit/manipulation.js"
></script>
<script
type=
"text/javascript"
src=
"unit/manipulation.js"
></script>
<script
type=
"text/javascript"
src=
"unit/dimensions.js"
></script>
<script
type=
"text/javascript"
src=
"unit/selector.js"
></script>
<script
type=
"text/javascript"
src=
"unit/event.js"
></script>
<script
type=
"text/javascript"
src=
"unit/ajax.js"
></script>
<script
type=
"text/javascript"
src=
"unit/fx.js"
></script>
</head>
<body
id=
"body"
>
<body
id=
"body"
>
<h1
id=
"header"
>
jQuery Test Suite
</h1>
<h1
id=
"header"
>
jQuery Test Suite
</h1>
<h2
id=
"banner"
></h2>
<h2
id=
"banner"
></h2>
...
@@ -77,7 +70,7 @@
...
@@ -77,7 +70,7 @@
<input
type=
"text"
id=
"name"
name=
"name"
value=
"name"
/>
<input
type=
"text"
id=
"name"
name=
"name"
value=
"name"
/>
<input
type=
"search"
id=
"search"
name=
"search"
value=
"search"
/>
<input
type=
"search"
id=
"search"
name=
"search"
value=
"search"
/>
<button
id=
"button"
name=
"button"
type=
"button"
>
Button
</button>
<button
id=
"button"
name=
"button"
>
Button
</button>
<textarea
id=
"area1"
maxlength=
"30"
>
foobar
</textarea>
<textarea
id=
"area1"
maxlength=
"30"
>
foobar
</textarea>
...
@@ -209,7 +202,7 @@ Z</textarea>
...
@@ -209,7 +202,7 @@ Z</textarea>
</div>
</div>
</div>
</div>
</dl>
</dl>
<div
id=
"fx-test-group"
style=
"
position:absolute;
width:1px;height:1px;overflow:hidden;"
>
<div
id=
"fx-test-group"
style=
"width:1px;height:1px;overflow:hidden;"
>
<div
id=
"fx-queue"
name=
"test"
>
<div
id=
"fx-queue"
name=
"test"
>
<div
id=
"fadein"
class=
'chain test'
name=
'div'
>
fadeIn
<div>
fadeIn
</div></div>
<div
id=
"fadein"
class=
'chain test'
name=
'div'
>
fadeIn
<div>
fadeIn
</div></div>
<div
id=
"fadeout"
class=
'chain test out'
>
fadeOut
<div>
fadeOut
</div></div>
<div
id=
"fadeout"
class=
'chain test out'
>
fadeOut
<div>
fadeOut
</div></div>
...
...
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