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
6971d9d8
Commit
6971d9d8
authored
Feb 07, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
363299ac
failures
parent
363299ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
sizzle_cache.html
test/data/selector/sizzle_cache.html
+0
-3
csp.php
test/data/support/csp.php
+7
-1
selector.js
test/unit/selector.js
+3
-1
No files found.
test/data/selector/sizzle_cache.html
View file @
6971d9d8
...
@@ -17,8 +17,5 @@
...
@@ -17,8 +17,5 @@
<div
class=
"test"
>
<div
class=
"test"
>
<a
href=
"#"
id=
"collision"
>
Worlds collide
</a>
<a
href=
"#"
id=
"collision"
>
Worlds collide
</a>
</div>
</div>
<script>
window
.
parent
.
iframeCallback
(
$cached
,
jQuery
,
document
);
</script>
</body>
</body>
</html>
</html>
test/data/support/csp.php
View file @
6971d9d8
<?php
<?php
# Support: Firefox
header
(
"X-Content-Security-Policy: default-src 'self';"
);
header
(
"X-Content-Security-Policy: default-src 'self';"
);
header
(
"X-WebKit-CSP: script-src 'self'"
);
# Support: Webkit, Safari 5
# http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
header
(
"X-WebKit-CSP: script-src "
.
$_SERVER
[
"HTTP_HOST"
]
.
" 'self'"
);
header
(
"Content-Security-Policy: default-src 'self'"
);
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
...
...
test/unit/selector.js
View file @
6971d9d8
...
@@ -175,7 +175,9 @@ testIframe("selector/html5_selector", "attributes - jQuery.attr", function( jQue
...
@@ -175,7 +175,9 @@ testIframe("selector/html5_selector", "attributes - jQuery.attr", function( jQue
t
(
"Improperly named form elements do not interfere with form selections (#9570)"
,
"form[name='formName']"
,
[
"form1"
]
);
t
(
"Improperly named form elements do not interfere with form selections (#9570)"
,
"form[name='formName']"
,
[
"form1"
]
);
});
});
testIframeWithCallback
(
"Sizzle cache collides with multiple Sizzles on a page"
,
"selector/sizzle_cache.html"
,
function
(
$cached
,
jQuery
,
document
)
{
testIframe
(
"selector/sizzle_cache"
,
"Sizzle cache collides with multiple Sizzles on a page"
,
function
(
jQuery
,
window
,
document
)
{
var
$cached
=
window
[
"$cached"
];
expect
(
4
);
expect
(
4
);
notStrictEqual
(
jQuery
,
$cached
,
"Loaded two engines"
);
notStrictEqual
(
jQuery
,
$cached
,
"Loaded two engines"
);
deepEqual
(
$cached
(
".test a"
).
get
(),
[
document
.
getElementById
(
"collision"
)
],
"Select collision anchor with first sizzle"
);
deepEqual
(
$cached
(
".test a"
).
get
(),
[
document
.
getElementById
(
"collision"
)
],
"Select collision anchor with first sizzle"
);
...
...
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