Skip to content
Permalink
Browse files

Selector: update Sizzle

Fix #14584
  • Loading branch information
gibson042 committed Dec 20, 2013
1 parent 7e8a91c commit 29c8003347e8768e26077c6d040203d662009220
Showing with 22 additions and 16 deletions.
  1. +1 −1 bower.json
  2. +15 −11 src/sizzle/dist/sizzle.js
  3. +2 −2 src/sizzle/dist/sizzle.min.js
  4. +1 −1 src/sizzle/dist/sizzle.min.map
  5. +3 −1 src/sizzle/test/unit/selector.js
@@ -13,7 +13,7 @@
"bower.json"
],
"dependencies": {
"sizzle": "1.10.14"
"sizzle": "1.10.15"
},
"devDependencies": {
"requirejs": "~2.1.8",
@@ -1,12 +1,12 @@
/*!
* Sizzle CSS Selector Engine v1.10.14
* Sizzle CSS Selector Engine v1.10.15
* http://sizzlejs.com/
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-11-27
* Date: 2013-12-20
*/
(function( window ) {

@@ -614,7 +614,13 @@ setDocument = Sizzle.setDocument = function( node ) {
// setting a boolean content attribute,
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
div.innerHTML = "<select><option selected=''></option></select>";
div.innerHTML = "<select t=''><option selected=''></option></select>";

// Support: IE8, Opera 10-12
// Nothing should be selected when empty strings follow ^= or $= or *=
if ( div.querySelectorAll("[t^='']").length ) {
rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
}

// Support: IE8
// Boolean attributes and "value" are not treated correctly
@@ -631,18 +637,16 @@ setDocument = Sizzle.setDocument = function( node ) {
});

assert(function( div ) {

// Support: Opera 10-12/IE8
// ^= $= *= and empty values
// Should not select anything
// Support: Windows 8 Native Apps
// The type attribute is restricted during .innerHTML assignment
// The type and name attributes are restricted during .innerHTML assignment
var input = doc.createElement("input");
input.setAttribute( "type", "hidden" );
div.appendChild( input ).setAttribute( "t", "" );
div.appendChild( input ).setAttribute( "name", "D" );

if ( div.querySelectorAll("[t^='']").length ) {
rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
// Support: IE8
// Enforce case-sensitivity of name attribute
if ( div.querySelectorAll("[name=d]").length ) {
rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
}

// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)

0 comments on commit 29c8003

Please sign in to comment.
You can’t perform that action at this time.