Skip to content

Commit 44f8239

Browse files
committed
Build: update Sizzle to 2.2.1
Ref jquery#2644 - `selector` module in Edge - Waiting for Sizzle update Fixes jquery#2390
1 parent 67b76f5 commit 44f8239

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

external/sizzle/dist/sizzle.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* Sizzle CSS Selector Engine v2.2.0
2+
* Sizzle CSS Selector Engine v2.2.1
33
* http://sizzlejs.com/
44
*
55
* Copyright jQuery Foundation and other contributors
66
* Released under the MIT license
77
* http://jquery.org/license
88
*
9-
* Date: 2015-04-10
9+
* Date: 2015-10-17
1010
*/
1111
(function( window ) {
1212

@@ -191,7 +191,7 @@ try {
191191
}
192192

193193
function Sizzle( selector, context, results, seed ) {
194-
var m, i, elem, nid, match, groups, newSelector,
194+
var m, i, elem, nid, nidselect, match, groups, newSelector,
195195
newContext = context && context.ownerDocument,
196196

197197
// nodeType defaults to 9, since context defaults to document
@@ -292,8 +292,9 @@ function Sizzle( selector, context, results, seed ) {
292292
// Prefix every selector in the list
293293
groups = tokenize( selector );
294294
i = groups.length;
295+
nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
295296
while ( i-- ) {
296-
groups[i] = "[id='" + nid + "'] " + toSelector( groups[i] );
297+
groups[i] = nidselect + " " + toSelector( groups[i] );
297298
}
298299
newSelector = groups.join( "," );
299300

@@ -380,7 +381,7 @@ function assert( fn ) {
380381
*/
381382
function addHandle( attrs, handler ) {
382383
var arr = attrs.split("|"),
383-
i = attrs.length;
384+
i = arr.length;
384385

385386
while ( i-- ) {
386387
Expr.attrHandle[ arr[i] ] = handler;
@@ -503,10 +504,9 @@ setDocument = Sizzle.setDocument = function( node ) {
503504
docElem = document.documentElement;
504505
documentIsHTML = !isXML( document );
505506

506-
// Support: IE 9 - 11
507+
// Support: IE 9-11, Edge
507508
// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
508-
// Limit the fix to IE with document.documentMode and IE >=9 with document.defaultView
509-
if ( document.documentMode && (parent = document.defaultView) && parent.top !== parent ) {
509+
if ( (parent = document.defaultView) && parent.top !== parent ) {
510510
// Support: IE 11
511511
if ( parent.addEventListener ) {
512512
parent.addEventListener( "unload", unloadHandler, false );

0 commit comments

Comments
 (0)