Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

updated sizzle.min.js to 1.5.1 #272

Closed
wants to merge 1 commit into from

3 participants

@loganrosen

updated sizzle.min.js

1.5.1 was obtained here: http://sizzlejs.com/
minified here: http://refresh-sf.com/yui/

@ryankirkman
Owner

Hmm, I'm a bit skeptical about using this compressed version as from what I can tell http://refresh-sf.com/yui/ defaults to symbol obfuscation.

@thomasdavis
Owner

Closing to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 12, 2012
  1. @loganrosen
This page is out of date. Refresh to see the latest.
View
7 ajax/libs/sizzle/1.5.1/sizzle.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Sizzle CSS Selector Engine
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),o=0,r=Object.prototype.toString,h=false,g=true,p=/\\/g,v=/\W/;[0,0].sort(function(){g=false;return 0});var d=function(A,e,D,E){D=D||[];e=e||document;var G=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!A||typeof A!=="string"){return D}var x,I,L,w,H,K,J,C,z=true,y=d.isXML(e),B=[],F=A;do{n.exec("");x=n.exec(F);if(x){F=x[3];B.push(x[1]);if(x[2]){w=x[3];break}}}while(x);if(B.length>1&&j.exec(A)){if(B.length===2&&k.relative[B[0]]){I=s(B[0]+B[1],e,E)}else{I=k.relative[B[0]]?[e]:d(B.shift(),e);while(B.length){A=B.shift();if(k.relative[A]){A+=B.shift()}I=s(A,I,E)}}}else{if(!E&&B.length>1&&e.nodeType===9&&!y&&k.match.ID.test(B[0])&&!k.match.ID.test(B[B.length-1])){H=d.find(B.shift(),e,y);e=H.expr?d.filter(H.expr,H.set)[0]:H.set[0]}if(e){H=E?{expr:B.pop(),set:l(E)}:d.find(B.pop(),B.length===1&&(B[0]==="~"||B[0]==="+")&&e.parentNode?e.parentNode:e,y);I=H.expr?d.filter(H.expr,H.set):H.set;if(B.length>0){L=l(I)}else{z=false}while(B.length){K=B.pop();J=K;if(!k.relative[K]){K=""}else{J=B.pop()}if(J==null){J=e}k.relative[K](L,J,y)}}else{L=B=[]}}if(!L){L=I}if(!L){d.error(K||A)}if(r.call(L)==="[object Array]"){if(!z){D.push.apply(D,L)}else{if(e&&e.nodeType===1){for(C=0;L[C]!=null;C++){if(L[C]&&(L[C]===true||L[C].nodeType===1&&d.contains(e,L[C]))){D.push(I[C])}}}else{for(C=0;L[C]!=null;C++){if(L[C]&&L[C].nodeType===1){D.push(I[C])}}}}}else{l(L,D)}if(w){d(w,G,D,E);d.uniqueSort(D)}return D};d.uniqueSort=function(w){if(q){h=g;w.sort(q);if(h){for(var e=1;e<w.length;e++){if(w[e]===w[e-1]){w.splice(e--,1)}}}}return w};d.matches=function(e,w){return d(e,null,null,w)};d.matchesSelector=function(e,w){return d(w,null,null,[e]).length>0};d.find=function(C,e,D){var B,x,z,y,A,w;if(!C){return[]}for(x=0,z=k.order.length;x<z;x++){A=k.order[x];if((y=k.leftMatch[A].exec(C))){w=y[1];y.splice(1,1);if(w.substr(w.length-1)!=="\\"){y[1]=(y[1]||"").replace(p,"");B=k.find[A](y,e,D);if(B!=null){C=C.replace(k.match[A],"");break}}}}if(!B){B=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:B,expr:C}};d.filter=function(G,F,J,z){var B,e,E,L,I,w,y,A,H,x=G,K=[],D=F,C=F&&F[0]&&d.isXML(F[0]);while(G&&F.length){for(E in k.filter){if((B=k.leftMatch[E].exec(G))!=null&&B[2]){w=k.filter[E];y=B[1];e=false;B.splice(1,1);if(y.substr(y.length-1)==="\\"){continue}if(D===K){K=[]}if(k.preFilter[E]){B=k.preFilter[E](B,D,J,K,z,C);if(!B){e=L=true}else{if(B===true){continue}}}if(B){for(A=0;(I=D[A])!=null;A++){if(I){L=w(I,B,A,D);H=z^L;if(J&&L!=null){if(H){e=true}else{D[A]=false}}else{if(H){K.push(I);e=true}}}}}if(L!==undefined){if(!J){D=K}G=G.replace(k.match[E],"");if(!e){return[]}break}}}if(G===x){if(e==null){d.error(G)}else{break}}x=G}return D};d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var b=d.getText=function(z){var x,y,e=z.nodeType,w="";if(e){if(e===1||e===9||e===11){if(typeof z.textContent==="string"){return z.textContent}else{for(z=z.firstChild;z;z=z.nextSibling){w+=b(z)}}}else{if(e===3||e===4){return z.nodeValue}}}else{for(x=0;(y=z[x]);x++){if(y.nodeType!==8){w+=b(y)}}}return w};var k=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(B,w){var y=typeof w==="string",A=y&&!v.test(w),C=y&&!A;if(A){w=w.toLowerCase()}for(var x=0,e=B.length,z;x<e;x++){if((z=B[x])){while((z=z.previousSibling)&&z.nodeType!==1){}B[x]=C||z&&z.nodeName.toLowerCase()===w?z||false:z===w}}if(C){d.filter(w,B,true)}},">":function(B,w){var A,z=typeof w==="string",x=0,e=B.length;if(z&&!v.test(w)){w=w.toLowerCase();for(;x<e;x++){A=B[x];if(A){var y=A.parentNode;B[x]=y.nodeName.toLowerCase()===w?y:false}}}else{for(;x<e;x++){A=B[x];if(A){B[x]=z?A.parentNode:A.parentNode===w}}if(z){d.filter(w,B,true)}}},"":function(y,w,A){var z,x=o++,e=t;if(typeof w==="string"&&!v.test(w)){w=w.toLowerCase();z=w;e=a}e("parentNode",w,x,y,z,A)},"~":function(y,w,A){var z,x=o++,e=t;if(typeof w==="string"&&!v.test(w)){w=w.toLowerCase();z=w;e=a}e("previousSibling",w,x,y,z,A)}},find:{ID:function(w,x,y){if(typeof x.getElementById!=="undefined"&&!y){var e=x.getElementById(w[1]);return e&&e.parentNode?[e]:[]}},NAME:function(x,A){if(typeof A.getElementsByName!=="undefined"){var w=[],z=A.getElementsByName(x[1]);for(var y=0,e=z.length;y<e;y++){if(z[y].getAttribute("name")===x[1]){w.push(z[y])}}return w.length===0?null:w}},TAG:function(e,w){if(typeof w.getElementsByTagName!=="undefined"){return w.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(y,w,x,e,B,C){y=" "+y[1].replace(p,"")+" ";if(C){return y}for(var z=0,A;(A=w[z])!=null;z++){if(A){if(B^(A.className&&(" "+A.className+" ").replace(/[\t\n\r]/g," ").indexOf(y)>=0)){if(!x){e.push(A)}}else{if(x){w[z]=false}}}}return false},ID:function(e){return e[1].replace(p,"")},TAG:function(w,e){return w[1].replace(p,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){d.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var w=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(w[1]+(w[2]||1))-0;e[3]=w[3]-0}else{if(e[2]){d.error(e[0])}}e[0]=o++;return e},ATTR:function(z,w,x,e,A,B){var y=z[1]=z[1].replace(p,"");if(!B&&k.attrMap[y]){z[1]=k.attrMap[y]}z[4]=(z[4]||z[5]||"").replace(p,"");if(z[2]==="~="){z[4]=" "+z[4]+" "}return z},PSEUDO:function(z,w,x,e,A){if(z[1]==="not"){if((n.exec(z[3])||"").length>1||/^\w/.test(z[3])){z[3]=d(z[3],null,null,w)}else{var y=d.filter(z[3],w,x,true^A);if(!x){e.push.apply(e,y)}return false}}else{if(k.match.POS.test(z[0])||k.match.CHILD.test(z[0])){return true}}return z},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(x,w,e){return !!d(e[3],x).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(x){var e=x.getAttribute("type"),w=x.type;return x.nodeName.toLowerCase()==="input"&&"text"===w&&(e===w||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(w){var e=w.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===w.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(w){var e=w.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===w.type},button:function(w){var e=w.nodeName.toLowerCase();return e==="input"&&"button"===w.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(w,e){return e===0},last:function(x,w,e,y){return w===y.length-1},even:function(w,e){return e%2===0},odd:function(w,e){return e%2===1},lt:function(x,w,e){return w<e[3]-0},gt:function(x,w,e){return w>e[3]-0},nth:function(x,w,e){return e[3]-0===w},eq:function(x,w,e){return e[3]-0===w}},filter:{PSEUDO:function(x,C,B,D){var e=C[1],w=k.filters[e];if(w){return w(x,B,C,D)}else{if(e==="contains"){return(x.textContent||x.innerText||b([x])||"").indexOf(C[3])>=0}else{if(e==="not"){var y=C[3];for(var A=0,z=y.length;A<z;A++){if(y[A]===x){return false}}return true}else{d.error(e)}}}},CHILD:function(x,z){var y,F,B,E,e,A,D,C=z[1],w=x;switch(C){case"only":case"first":while((w=w.previousSibling)){if(w.nodeType===1){return false}}if(C==="first"){return true}w=x;case"last":while((w=w.nextSibling)){if(w.nodeType===1){return false}}return true;case"nth":y=z[2];F=z[3];if(y===1&&F===0){return true}B=z[0];E=x.parentNode;if(E&&(E[i]!==B||!x.nodeIndex)){A=0;for(w=E.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++A}}E[i]=B}D=x.nodeIndex-F;if(y===0){return D===0}else{return(D%y===0&&D/y>=0)}}},ID:function(w,e){return w.nodeType===1&&w.getAttribute("id")===e},TAG:function(w,e){return(e==="*"&&w.nodeType===1)||!!w.nodeName&&w.nodeName.toLowerCase()===e},CLASS:function(w,e){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(A,y){var x=y[1],e=d.attr?d.attr(A,x):k.attrHandle[x]?k.attrHandle[x](A):A[x]!=null?A[x]:A.getAttribute(x),B=e+"",z=y[2],w=y[4];return e==null?z==="!=":!z&&d.attr?e!=null:z==="="?B===w:z==="*="?B.indexOf(w)>=0:z==="~="?(" "+B+" ").indexOf(w)>=0:!w?B&&e!==false:z==="!="?B!==w:z==="^="?B.indexOf(w)===0:z==="$="?B.substr(B.length-w.length)===w:z==="|="?B===w||B.substr(0,w.length+1)===w+"-":false},POS:function(z,w,x,A){var e=w[2],y=k.setFilters[e];if(y){return y(z,x,w,A)}}}};var j=k.match.POS,c=function(w,e){return"\\"+(e-0+1)};for(var f in k.match){k.match[f]=new RegExp(k.match[f].source+(/(?![^\[]*\])(?![^\(]*\))/.source));k.leftMatch[f]=new RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[f].source.replace(/\\(\d+)/g,c))}k.match.globalPOS=j;var l=function(w,e){w=Array.prototype.slice.call(w,0);if(e){e.push.apply(e,w);return e}return w};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(u){l=function(z,y){var x=0,w=y||[];if(r.call(z)==="[object Array]"){Array.prototype.push.apply(w,z)}else{if(typeof z.length==="number"){for(var e=z.length;x<e;x++){w.push(z[x])}}else{for(;z[x];x++){w.push(z[x])}}}return w}}var q,m;if(document.documentElement.compareDocumentPosition){q=function(w,e){if(w===e){h=true;return 0}if(!w.compareDocumentPosition||!e.compareDocumentPosition){return w.compareDocumentPosition?-1:1}return w.compareDocumentPosition(e)&4?-1:1}}else{q=function(D,C){if(D===C){h=true;return 0}else{if(D.sourceIndex&&C.sourceIndex){return D.sourceIndex-C.sourceIndex}}var A,w,x=[],e=[],z=D.parentNode,B=C.parentNode,E=z;if(z===B){return m(D,C)}else{if(!z){return -1}else{if(!B){return 1}}}while(E){x.unshift(E);E=E.parentNode}E=B;while(E){e.unshift(E);E=E.parentNode}A=x.length;w=e.length;for(var y=0;y<A&&y<w;y++){if(x[y]!==e[y]){return m(x[y],e[y])}}return y===A?m(D,e[y],-1):m(x[y],C,1)};m=function(w,e,x){if(w===e){return x}var y=w.nextSibling;while(y){if(y===e){return -1}y=y.nextSibling}return 1}}(function(){var w=document.createElement("div"),x="script"+(new Date()).getTime(),e=document.documentElement;w.innerHTML="<a name='"+x+"'/>";e.insertBefore(w,e.firstChild);if(document.getElementById(x)){k.find.ID=function(z,A,B){if(typeof A.getElementById!=="undefined"&&!B){var y=A.getElementById(z[1]);return y?y.id===z[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===z[1]?[y]:undefined:[]}};k.filter.ID=function(A,y){var z=typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id");return A.nodeType===1&&z&&z.nodeValue===y}}e.removeChild(w);e=w=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){k.find.TAG=function(w,A){var z=A.getElementsByTagName(w[1]);if(w[1]==="*"){var y=[];for(var x=0;z[x];x++){if(z[x].nodeType===1){y.push(z[x])}}z=y}return z}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(w){return w.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=d,y=document.createElement("div"),x="__sizzle__";y.innerHTML="<p class='TEST'></p>";if(y.querySelectorAll&&y.querySelectorAll(".TEST").length===0){return}d=function(J,A,E,I){A=A||document;if(!I&&!d.isXML(A)){var H=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(J);if(H&&(A.nodeType===1||A.nodeType===9)){if(H[1]){return l(A.getElementsByTagName(J),E)}else{if(H[2]&&k.find.CLASS&&A.getElementsByClassName){return l(A.getElementsByClassName(H[2]),E)}}}if(A.nodeType===9){if(J==="body"&&A.body){return l([A.body],E)}else{if(H&&H[3]){var D=A.getElementById(H[3]);if(D&&D.parentNode){if(D.id===H[3]){return l([D],E)}}else{return l([],E)}}}try{return l(A.querySelectorAll(J),E)}catch(F){}}else{if(A.nodeType===1&&A.nodeName.toLowerCase()!=="object"){var B=A,C=A.getAttribute("id"),z=C||x,L=A.parentNode,K=/^\s*[+~]/.test(J);if(!C){A.setAttribute("id",z)}else{z=z.replace(/'/g,"\\$&")}if(K&&L){A=A.parentNode}try{if(!K||L){return l(A.querySelectorAll("[id='"+z+"'] "+J),E)}}catch(G){}finally{if(!C){B.removeAttribute("id")}}}}}return e(J,A,E,I)};for(var w in e){d[w]=e[w]}y=null})()}(function(){var e=document.documentElement,x=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(x){var z=!x.call(document.createElement("div"),"div"),w=false;try{x.call(document.documentElement,"[test!='']:sizzle")}catch(y){w=true}d.matchesSelector=function(B,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(B)){try{if(w||!k.match.PSEUDO.test(D)&&!/!=/.test(D)){var A=x.call(B,D);if(A||!z||B.document&&B.document.nodeType!==11){return A}}}catch(C){}}return d(D,null,null,[B]).length>0}}})();(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}k.order.splice(1,0,"CLASS");k.find.CLASS=function(w,x,y){if(typeof x.getElementsByClassName!=="undefined"&&!y){return x.getElementsByClassName(w[1])}};e=null})();function a(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var e=E[y];if(e){var z=false;e=e[w];while(e){if(e[i]===A){z=E[e.sizset];break}if(e.nodeType===1&&!D){e[i]=A;e.sizset=y}if(e.nodeName.toLowerCase()===B){z=e;break}e=e[w]}E[y]=z}}}function t(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var e=E[y];if(e){var z=false;e=e[w];while(e){if(e[i]===A){z=E[e.sizset];break}if(e.nodeType===1){if(!D){e[i]=A;e.sizset=y}if(typeof B!=="string"){if(e===B){z=true;break}}else{if(d.filter(B,[e]).length>0){z=e;break}}}e=e[w]}E[y]=z}}}if(document.documentElement.contains){d.contains=function(w,e){return w!==e&&(w.contains?w.contains(e):true)}}else{if(document.documentElement.compareDocumentPosition){d.contains=function(w,e){return !!(w.compareDocumentPosition(e)&16)}}else{d.contains=function(){return false}}}d.isXML=function(e){var w=(e?e.ownerDocument||e:0).documentElement;return w?w.nodeName!=="HTML":false};var s=function(x,e,B){var A,C=[],z="",D=e.nodeType?[e]:e;while((A=k.match.PSEUDO.exec(x))){z+=A[0];x=x.replace(k.match.PSEUDO,"")}x=k.relative[x]?x+"*":x;for(var y=0,w=D.length;y<w;y++){d(x,D[y],C,B)}return d.filter(z,C)};window.Sizzle=d})();
View
8 ajax/libs/sizzle/package.json
@@ -1,7 +1,7 @@
{
"name": "sizzle",
"filename": "sizzle.min.js",
- "version": "1.4.4",
+ "version": "1.5.1",
"description": "A pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.",
"homepage": "http://sizzlejs.com/",
"keywords": [
@@ -11,14 +11,14 @@
],
"maintainers": [
{
- "name": "John Resig",
- "web": "http://ejohn.org/"
+ "name": "The jQuery Project",
+ "web": "http://jquery.org/"
}
],
"repositories": [
{
"type": "git",
- "url": "https://github.com/jeresig/sizzle"
+ "url": "https://github.com/jquery/sizzle"
}
]
Something went wrong with that request. Please try again.