mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: update Sizzle to 2.2.1
Ref #2644 - `selector` module in Edge - Waiting for Sizzle update Fixes #2390
This commit is contained in:
parent
67b76f5986
commit
44f8239d3f
16
external/sizzle/dist/sizzle.js
vendored
16
external/sizzle/dist/sizzle.js
vendored
@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* Sizzle CSS Selector Engine v2.2.0
|
||||
* Sizzle CSS Selector Engine v2.2.1
|
||||
* http://sizzlejs.com/
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: 2015-04-10
|
||||
* Date: 2015-10-17
|
||||
*/
|
||||
(function( window ) {
|
||||
|
||||
@ -191,7 +191,7 @@ try {
|
||||
}
|
||||
|
||||
function Sizzle( selector, context, results, seed ) {
|
||||
var m, i, elem, nid, match, groups, newSelector,
|
||||
var m, i, elem, nid, nidselect, match, groups, newSelector,
|
||||
newContext = context && context.ownerDocument,
|
||||
|
||||
// nodeType defaults to 9, since context defaults to document
|
||||
@ -292,8 +292,9 @@ function Sizzle( selector, context, results, seed ) {
|
||||
// Prefix every selector in the list
|
||||
groups = tokenize( selector );
|
||||
i = groups.length;
|
||||
nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
|
||||
while ( i-- ) {
|
||||
groups[i] = "[id='" + nid + "'] " + toSelector( groups[i] );
|
||||
groups[i] = nidselect + " " + toSelector( groups[i] );
|
||||
}
|
||||
newSelector = groups.join( "," );
|
||||
|
||||
@ -380,7 +381,7 @@ function assert( fn ) {
|
||||
*/
|
||||
function addHandle( attrs, handler ) {
|
||||
var arr = attrs.split("|"),
|
||||
i = attrs.length;
|
||||
i = arr.length;
|
||||
|
||||
while ( i-- ) {
|
||||
Expr.attrHandle[ arr[i] ] = handler;
|
||||
@ -503,10 +504,9 @@ setDocument = Sizzle.setDocument = function( node ) {
|
||||
docElem = document.documentElement;
|
||||
documentIsHTML = !isXML( document );
|
||||
|
||||
// Support: IE 9 - 11
|
||||
// Support: IE 9-11, Edge
|
||||
// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
|
||||
// Limit the fix to IE with document.documentMode and IE >=9 with document.defaultView
|
||||
if ( document.documentMode && (parent = document.defaultView) && parent.top !== parent ) {
|
||||
if ( (parent = document.defaultView) && parent.top !== parent ) {
|
||||
// Support: IE 11
|
||||
if ( parent.addEventListener ) {
|
||||
parent.addEventListener( "unload", unloadHandler, false );
|
||||
|
4
external/sizzle/dist/sizzle.min.js
vendored
4
external/sizzle/dist/sizzle.min.js
vendored
File diff suppressed because one or more lines are too long
2
external/sizzle/dist/sizzle.min.map
vendored
2
external/sizzle/dist/sizzle.min.map
vendored
File diff suppressed because one or more lines are too long
@ -48,7 +48,7 @@
|
||||
"qunit-assert-step": "1.0.3",
|
||||
"requirejs": "2.1.17",
|
||||
"sinon": "1.10.3",
|
||||
"sizzle": "2.2.0",
|
||||
"sizzle": "2.2.1",
|
||||
"strip-json-comments": "1.0.3",
|
||||
"testswarm": "1.1.0",
|
||||
"win-spawn": "2.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user