Skip to content

Commit c0b23e2

Browse files
committed
Build: update Sizzle to 1.11.1 and include license
1 parent 35f8e15 commit c0b23e2

File tree

6 files changed

+45
-35
lines changed

6 files changed

+45
-35
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = function( grunt ) {
5454
},
5555
files: {
5656
"sizzle/dist": "sizzle/dist",
57+
"sizzle/MIT-LICENSE.txt": "sizzle/MIT-LICENSE.txt",
5758

5859
"qunit/qunit.js": "qunit/qunit/qunit.js",
5960
"qunit/qunit.css": "qunit/qunit/qunit.css",

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"package.json"
1515
],
1616
"devDependencies": {
17-
"sizzle": "1.10.19",
17+
"sizzle": "1.11.1",
1818
"requirejs": "2.1.10",
1919
"qunit": "1.14.0",
2020
"sinon": "1.8.1"

external/sizzle/MIT-LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright 2013 jQuery Foundation and other contributors
2+
http://jquery.com/
3+
4+
Permission is hereby granted, free of charge, to any person obtaining
5+
a copy of this software and associated documentation files (the
6+
"Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish,
8+
distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so, subject to
10+
the following conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

external/sizzle/dist/sizzle.js

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* Sizzle CSS Selector Engine v1.10.19
2+
* Sizzle CSS Selector Engine v1.11.1
33
* http://sizzlejs.com/
44
*
55
* Copyright 2013 jQuery Foundation, Inc. and other contributors
66
* Released under the MIT license
77
* http://jquery.org/license
88
*
9-
* Date: 2014-04-18
9+
* Date: 2014-06-25
1010
*/
1111
(function( window ) {
1212

@@ -74,25 +74,21 @@ var i,
7474

7575
// Regular expressions
7676

77-
// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
77+
// http://www.w3.org/TR/css3-selectors/#whitespace
7878
whitespace = "[\\x20\\t\\r\\n\\f]",
79-
// http://www.w3.org/TR/css3-syntax/#characters
80-
characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
8179

82-
// Loosely modeled on CSS identifier characters
83-
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
84-
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
85-
identifier = characterEncoding.replace( "w", "w#" ),
80+
// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
81+
identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
8682

8783
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
88-
attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
84+
attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
8985
// Operator (capture 2)
9086
"*([*^$|!~]?=)" + whitespace +
9187
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
9288
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
9389
"*\\]",
9490

95-
pseudos = ":(" + characterEncoding + ")(?:\\((" +
91+
pseudos = ":(" + identifier + ")(?:\\((" +
9692
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
9793
// 1. quoted (capture 3; capture 4 or capture 5)
9894
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
@@ -114,9 +110,9 @@ var i,
114110
ridentifier = new RegExp( "^" + identifier + "$" ),
115111

116112
matchExpr = {
117-
"ID": new RegExp( "^#(" + characterEncoding + ")" ),
118-
"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
119-
"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
113+
"ID": new RegExp( "^#(" + identifier + ")" ),
114+
"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
115+
"TAG": new RegExp( "^(" + identifier + "|[*])" ),
120116
"ATTR": new RegExp( "^" + attributes ),
121117
"PSEUDO": new RegExp( "^" + pseudos ),
122118
"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
@@ -240,7 +236,7 @@ function Sizzle( selector, context, results, seed ) {
240236
return results;
241237

242238
// Speed-up: Sizzle(".CLASS")
243-
} else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {
239+
} else if ( (m = match[3]) && support.getElementsByClassName ) {
244240
push.apply( results, context.getElementsByClassName( m ) );
245241
return results;
246242
}
@@ -513,17 +509,8 @@ setDocument = Sizzle.setDocument = function( node ) {
513509
return !div.getElementsByTagName("*").length;
514510
});
515511

516-
// Check if getElementsByClassName can be trusted
517-
support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) {
518-
div.innerHTML = "<div class='a'></div><div class='a i'></div>";
519-
520-
// Support: Safari<4
521-
// Catch class over-caching
522-
div.firstChild.className = "i";
523-
// Support: Opera<10
524-
// Catch gEBCN failure to find non-leading classes
525-
return div.getElementsByClassName("i").length === 2;
526-
});
512+
// Support: IE<9
513+
support.getElementsByClassName = rnative.test( doc.getElementsByClassName );
527514

528515
// Support: IE<10
529516
// Check if getElementById returns elements by name
@@ -592,7 +579,7 @@ setDocument = Sizzle.setDocument = function( node ) {
592579

593580
// Class
594581
Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
595-
if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {
582+
if ( documentIsHTML ) {
596583
return context.getElementsByClassName( className );
597584
}
598585
};
@@ -621,13 +608,13 @@ setDocument = Sizzle.setDocument = function( node ) {
621608
// setting a boolean content attribute,
622609
// since its presence should be enough
623610
// http://bugs.jquery.com/ticket/12359
624-
div.innerHTML = "<select msallowclip=''><option selected=''></option></select>";
611+
div.innerHTML = "<select msallowcapture=''><option selected=''></option></select>";
625612

626613
// Support: IE8, Opera 11-12.16
627614
// Nothing should be selected when empty strings follow ^= or $= or *=
628615
// The test attribute must be unknown in Opera but "safe" for WinRT
629616
// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
630-
if ( div.querySelectorAll("[msallowclip^='']").length ) {
617+
if ( div.querySelectorAll("[msallowcapture^='']").length ) {
631618
rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
632619
}
633620

@@ -1260,6 +1247,7 @@ Expr = Sizzle.selectors = {
12601247
}),
12611248

12621249
"contains": markFunction(function( text ) {
1250+
text = text.replace( runescape, funescape );
12631251
return function( elem ) {
12641252
return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
12651253
};
@@ -1972,7 +1960,7 @@ select = Sizzle.select = function( selector, context, results, seed ) {
19721960
// Sort stability
19731961
support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
19741962

1975-
// Support: Chrome<14
1963+
// Support: Chrome 14-35+
19761964
// Always assume duplicates if they aren't passed to the comparison function
19771965
support.detectDuplicates = !!hasDuplicate;
19781966

0 commit comments

Comments
 (0)