mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
update Sizzle
This commit is contained in:
parent
28df086bbc
commit
d08d48337f
@ -1 +1 @@
|
||||
Subproject commit 7ea8b52ed6f4e3026216037c00a24edd9fce4fff
|
||||
Subproject commit c488e18facdf50de2d272a052d1e0f663ec19fd4
|
@ -14,12 +14,11 @@
|
||||
<script src="data/testinit.js"></script>
|
||||
|
||||
<script src="qunit/qunit/qunit.js"></script>
|
||||
<!-- Loads minified version if min=true is present in the search -->
|
||||
<!-- Nullifies querySelectorAll if noqsa=true is present -->
|
||||
<script>
|
||||
(function() {
|
||||
var src = "../dist/jquery.js";
|
||||
|
||||
// Config parameter to use minified jQuery
|
||||
QUnit.config.urlConfig.push({
|
||||
id: "min",
|
||||
label: "Load minified",
|
||||
@ -29,15 +28,19 @@
|
||||
src = "../dist/jquery.min.js";
|
||||
}
|
||||
|
||||
// Config parameter to force basic code paths
|
||||
QUnit.config.urlConfig.push({
|
||||
id: "noqsa",
|
||||
label: "Disable querySelectorAll",
|
||||
tooltip: "Disable the native document.querySelectorAll"
|
||||
id: "basic",
|
||||
label: "Bypass optimizations",
|
||||
tooltip: "Force use of the most basic code by disabling native querySelectorAll; contains; compareDocumentPosition"
|
||||
});
|
||||
if ( QUnit.urlParams.noqsa ) {
|
||||
if ( QUnit.urlParams.basic ) {
|
||||
document.querySelectorAll = null;
|
||||
document.documentElement.contains = null;
|
||||
document.documentElement.compareDocumentPosition = null;
|
||||
}
|
||||
|
||||
// Load jQuery
|
||||
document.write( "<script src='" + src + "'><\/script>" );
|
||||
})();
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user