Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/cpp/iedriver/Generated/sizzle.h
2868 views
1
/*
2
* Copyright 2011-2012 WebDriver committers
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/* AUTO GENERATED - DO NOT EDIT BY HAND */
18
#ifndef WEBDRIVER_SIZZLE_H_
19
#define WEBDRIVER_SIZZLE_H_
20
21
#include <stddef.h> // For wchar_t.
22
#include <string> // For std::(w)string.
23
24
namespace webdriver {
25
namespace atoms {
26
27
28
const wchar_t* const SIZZLE[] = {
29
L"(function(){function y(a,b,c,d,f,e){for(var f=0,h=d.length;f<h;f++){va",
30
L"r g=d[f];if(g){for(var i=!1,g=g[a];g;){if(g.sizcache===c){i=d[g.sizset",
31
L"];break}if(g.nodeType===1&&!e)g.sizcache=c,g.sizset=f;if(g.nodeName.to",
32
L"LowerCase()===b){i=g;break}g=g[a]}d[f]=i}}}function z(a,b,c,d,f,e){for",
33
L"(var f=0,h=d.length;f<h;f++){var g=d[f];if(g){for(var j=!1,g=g[a];g;){",
34
L"if(g.sizcache===c){j=d[g.sizset];break}if(g.nodeType===1){if(!e)g.sizc",
35
L"ache=c,g.sizset=f;if(typeof b!==\"string\"){if(g===b){j=!0;break}}else",
36
L" if(i.filter(b,\n[g]).length>0){j=g;break}}g=g[a]}d[f]=j}}}var w=/((?:",
37
L"\\((?:\\([^()]+\\)|[^()]+)+\\)|\\[(?:\\[[^\\[\\]]*\\]|['\"][^'\"]*['\"",
38
L"]|[^\\[\\]'\"]+)+\\]|\\\\.|[^ >+~,(\\[\\\\]+)+|[>+~])(\\s*,\\s*)?((?:.",
39
L"|\\r|\\n)*)/g,x=0,A=Object.prototype.toString,t=!1,B=!0,p=/\\\\/g,u=/",
40
L"\\W/;[0,0].sort(function(){B=!1;return 0});var i=function(a,b,c,d){var",
41
L" c=c||[],f=b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if",
42
L"(!a||typeof a!==\"string\")return c;var e,h,g,l,s,m=!0,n=i.isXML(b),k=",
43
L"[],p=a;do if(w.exec(\"\"),e=w.exec(p))if(p=e[3],k.push(e[1]),\ne[2]){l",
44
L"=e[3];break}while(e);if(k.length>1&&D.exec(a))if(k.length===2&&j.relat",
45
L"ive[k[0]])h=C(k[0]+k[1],b);else for(h=j.relative[k[0]]?[b]:i(k.shift()",
46
L",b);k.length;)a=k.shift(),j.relative[a]&&(a+=k.shift()),h=C(a,h);else ",
47
L"if(!d&&k.length>1&&b.nodeType===9&&!n&&j.match.ID.test(k[0])&&!j.match",
48
L".ID.test(k[k.length-1])&&(e=i.find(k.shift(),b,n),b=e.expr?i.filter(e.",
49
L"expr,e.set)[0]:e.set[0]),b){e=d?{expr:k.pop(),set:o(d)}:i.find(k.pop()",
50
L",k.length===1&&(k[0]===\"~\"||k[0]===\"+\")&&b.parentNode?b.parentNode",
51
L":b,n);h=\ne.expr?i.filter(e.expr,e.set):e.set;for(k.length>0?g=o(h):m=",
52
L"!1;k.length;)e=s=k.pop(),j.relative[s]?e=k.pop():s=\"\",e==null&&(e=b)",
53
L",j.relative[s](g,e,n)}else g=[];g||(g=h);g||i.error(s||a);if(A.call(g)",
54
L"===\"[object Array]\")if(m)if(b&&b.nodeType===1)for(a=0;g[a]!=null;a++",
55
L")g[a]&&(g[a]===!0||g[a].nodeType===1&&i.contains(b,g[a]))&&c.push(h[a]",
56
L");else for(a=0;g[a]!=null;a++)g[a]&&g[a].nodeType===1&&c.push(h[a]);el",
57
L"se c.push.apply(c,g);else o(g,c);l&&(i(l,f,c,d),i.uniqueSort(c));retur",
58
L"n c};i.uniqueSort=function(a){if(v&&\n(t=B,a.sort(v),t))for(var b=1;b<",
59
L"a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};i.matches=functi",
60
L"on(a,b){return i(a,null,null,b)};i.matchesSelector=function(a,b){retur",
61
L"n i(b,null,null,[a]).length>0};i.find=function(a,b,c){var d;if(!a)retu",
62
L"rn[];for(var f=0,e=j.order.length;f<e;f++){var h,g=j.order[f];if(h=j.l",
63
L"eftMatch[g].exec(a)){var i=h[1];h.splice(1,1);if(i.substr(i.length-1)!",
64
L"==\"\\\\\"&&(h[1]=(h[1]||\"\").replace(p,\"\"),d=j.find[g](h,b,c),d!=n",
65
L"ull)){a=a.replace(j.match[g],\"\");break}}}d||(d=typeof b.getElementsB",
66
L"yTagName!==\n\"undefined\"?b.getElementsByTagName(\"*\"):[]);return{se",
67
L"t:d,expr:a}};i.filter=function(a,b,c,d){for(var f,e,h=a,g=[],l=b,o=b&&",
68
L"b[0]&&i.isXML(b[0]);a&&b.length;){for(var m in j.filter)if((f=j.leftMa",
69
L"tch[m].exec(a))!=null&&f[2]){var n,k,p=j.filter[m];k=f[1];e=!1;f.splic",
70
L"e(1,1);if(k.substr(k.length-1)!==\"\\\\\"){l===g&&(g=[]);if(j.preFilte",
71
L"r[m])if(f=j.preFilter[m](f,l,c,g,d,o)){if(f===!0)continue}else e=n=!0;",
72
L"if(f)for(var q=0;(k=l[q])!=null;q++)if(k){n=p(k,f,q,l);var r=d^!!n;c&&",
73
L"n!=null?r?e=!0:l[q]=!1:r&&(g.push(k),\ne=!0)}if(n!==void 0){c||(l=g);a",
74
L"=a.replace(j.match[m],\"\");if(!e)return[];break}}}if(a===h)if(e==null",
75
L")i.error(a);else break;h=a}return l};i.error=function(a){throw\"Syntax",
76
L" error, unrecognized expression: \"+a;};var j=i.selectors={order:[\"ID",
77
L"\",\"NAME\",\"TAG\"],match:{ID:/#((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/",
78
L",CLASS:/\\.((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,NAME:/\\[name=['\"]*(",
79
L"(?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)['\"]*\\]/,ATTR:/\\[\\s*((?:[\\w\\u",
80
L"00c0-\\uFFFF\\-]|\\\\.)+)\\s*(?:(\\S?=)\\s*(?:(['\"])(.*?)\\3|(#?(?:[",
81
L"\\w\\u00c0-\\uFFFF\\-]|\\\\.)*)|)|)\\s*\\]/,\nTAG:/^((?:[\\w\\u00c0-",
82
L"\\uFFFF\\*\\-]|\\\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\\(\\s*",
83
L"(even|odd|(?:[+\\-]?\\d+|(?:[+\\-]?\\d*)?n\\s*(?:[+\\-]\\s*\\d+)?))\\s",
84
L"*\\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^",
85
L"\\-]|$)/,PSEUDO:/:((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)(?:\\((['\"]?)((",
86
L"?:\\([^\\)]+\\)|[^\\(\\)]*)+)\\2\\))?/},leftMatch:{},attrMap:{\"class",
87
L"\":\"className\",\"for\":\"htmlFor\"},attrHandle:{href:function(a){ret",
88
L"urn a.getAttribute(\"href\")},type:function(a){return a.getAttribute(",
89
L"\"type\")}},relative:{\"+\":function(a,b){var c=\ntypeof b===\"string",
90
L"\",d=c&&!u.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,f=a.leng",
91
L"th,e;d<f;d++)if(e=a[d]){for(;(e=e.previousSibling)&&e.nodeType!==1;);a",
92
L"[d]=c||e&&e.nodeName.toLowerCase()===b?e||!1:e===b}c&&i.filter(b,a,!0)",
93
L"},\">\":function(a,b){var c,d=typeof b===\"string\",f=0,e=a.length;if(",
94
L"d&&!u.test(b))for(b=b.toLowerCase();f<e;f++){if(c=a[f])c=c.parentNode,",
95
L"a[f]=c.nodeName.toLowerCase()===b?c:!1}else{for(;f<e;f++)(c=a[f])&&(a[",
96
L"f]=d?c.parentNode:c.parentNode===b);d&&i.filter(b,a,!0)}},\"\":functio",
97
L"n(a,\nb,c){var d,f=x++,e=z;typeof b===\"string\"&&!u.test(b)&&(d=b=b.t",
98
L"oLowerCase(),e=y);e(\"parentNode\",b,f,a,d,c)},\"~\":function(a,b,c){v",
99
L"ar d,f=x++,e=z;typeof b===\"string\"&&!u.test(b)&&(d=b=b.toLowerCase()",
100
L",e=y);e(\"previousSibling\",b,f,a,d,c)}},find:{ID:function(a,b,c){if(t",
101
L"ypeof b.getElementById!==\"undefined\"&&!c)return(a=b.getElementById(a",
102
L"[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElements",
103
L"ByName!==\"undefined\"){for(var c=[],d=b.getElementsByName(a[1]),f=0,e",
104
L"=d.length;f<e;f++)d[f].getAttribute(\"name\")===\na[1]&&c.push(d[f]);r",
105
L"eturn c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsB",
106
L"yTagName!==\"undefined\")return b.getElementsByTagName(a[1])}},preFilt",
107
L"er:{CLASS:function(a,b,c,d,f,e){a=\" \"+a[1].replace(p,\"\")+\" \";if(",
108
L"e)return a;for(var e=0,h;(h=b[e])!=null;e++)h&&(f^(h.className&&(\" \"",
109
L"+h.className+\" \").replace(/[\\t\\n\\r]/g,\" \").indexOf(a)>=0)?c||d.",
110
L"push(h):c&&(b[e]=!1));return!1},ID:function(a){return a[1].replace(p,",
111
L"\"\")},TAG:function(a){return a[1].replace(p,\"\").toLowerCase()},CHIL",
112
L"D:function(a){if(a[1]===\n\"nth\"){a[2]||i.error(a[0]);a[2]=a[2].repla",
113
L"ce(/^\\+|\\s*/g,\"\");var b=/(-?)(\\d*)(?:n([+\\-]?\\d*))?/.exec(a[2]=",
114
L"==\"even\"&&\"2n\"||a[2]===\"odd\"&&\"2n+1\"||!/\\D/.test(a[2])&&\"0n+",
115
L"\"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&i.error(a[",
116
L"0]);a[0]=x++;return a},ATTR:function(a,b,c,d,f,e){b=a[1]=a[1].replace(",
117
L"p,\"\");!e&&j.attrMap[b]&&(a[1]=j.attrMap[b]);a[4]=(a[4]||a[5]||\"\").",
118
L"replace(p,\"\");a[2]===\"~=\"&&(a[4]=\" \"+a[4]+\" \");return a},PSEUD",
119
L"O:function(a,b,c,d,f){if(a[1]===\"not\")if((w.exec(a[3])||\"\").length",
120
L">1||\n/^\\w/.test(a[3]))a[3]=i(a[3],null,null,b);else return a=i.filte",
121
L"r(a[3],b,c,1^f),c||d.push.apply(d,a),!1;else if(j.match.POS.test(a[0])",
122
L"||j.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshif",
123
L"t(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&",
124
L"a.type!==\"hidden\"},disabled:function(a){return a.disabled===!0},chec",
125
L"ked:function(a){return a.checked===!0},selected:function(a){return a.s",
126
L"elected===!0},parent:function(a){return!!a.firstChild},empty:function(",
127
L"a){return!a.firstChild},\nhas:function(a,b,c){return!!i(c[3],a).length",
128
L"},header:function(a){return/h\\d/i.test(a.nodeName)},text:function(a){",
129
L"var b=a.getAttribute(\"type\"),c=a.type;return a.nodeName.toLowerCase(",
130
L")===\"input\"&&\"text\"===c&&(b===c||b===null)},radio:function(a){retu",
131
L"rn a.nodeName.toLowerCase()===\"input\"&&\"radio\"===a.type},checkbox:",
132
L"function(a){return a.nodeName.toLowerCase()===\"input\"&&\"checkbox\"=",
133
L"==a.type},file:function(a){return a.nodeName.toLowerCase()===\"input\"",
134
L"&&\"file\"===a.type},password:function(a){return a.nodeName.toLowerCas",
135
L"e()===\n\"input\"&&\"password\"===a.type},submit:function(a){var b=a.n",
136
L"odeName.toLowerCase();return(b===\"input\"||b===\"button\")&&\"submit",
137
L"\"===a.type},image:function(a){return a.nodeName.toLowerCase()===\"inp",
138
L"ut\"&&\"image\"===a.type},reset:function(a){var b=a.nodeName.toLowerCa",
139
L"se();return(b===\"input\"||b===\"button\")&&\"reset\"===a.type},button",
140
L":function(a){var b=a.nodeName.toLowerCase();return b===\"input\"&&\"bu",
141
L"tton\"===a.type||b===\"button\"},input:function(a){return/input|select",
142
L"|textarea|button/i.test(a.nodeName)},focus:function(a){return a===\na.",
143
L"ownerDocument.activeElement}},setFilters:{first:function(a,b){return b",
144
L"===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b)",
145
L"{return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){",
146
L"return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,",
147
L"c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{P",
148
L"SEUDO:function(a,b,c,d){var f=b[1],e=j.filters[f];if(e)return e(a,c,b,",
149
L"d);else if(f===\"contains\")return(a.textContent||a.innerText||i.getTe",
150
L"xt([a])||\"\").indexOf(b[3])>=\n0;else if(f===\"not\"){b=b[3];c=0;for(",
151
L"d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}else i.error(f)},CHIL",
152
L"D:function(a,b){var c=b[1],d=a;switch(c){case \"only\":case \"first\":",
153
L"for(;d=d.previousSibling;)if(d.nodeType===1)return!1;if(c===\"first\")",
154
L"return!0;d=a;case \"last\":for(;d=d.nextSibling;)if(d.nodeType===1)ret",
155
L"urn!1;return!0;case \"nth\":var c=b[2],f=b[3];if(c===1&&f===0)return!0",
156
L";var e=b[0],h=a.parentNode;if(h&&(h.sizcache!==e||!a.nodeIndex)){for(v",
157
L"ar g=0,d=h.firstChild;d;d=d.nextSibling)if(d.nodeType===\n1)d.nodeInde",
158
L"x=++g;h.sizcache=e}d=a.nodeIndex-f;return c===0?d===0:d%c===0&&d/c>=0}",
159
L"},ID:function(a,b){return a.nodeType===1&&a.getAttribute(\"id\")===b},",
160
L"TAG:function(a,b){return b===\"*\"&&a.nodeType===1||a.nodeName.toLower",
161
L"Case()===b},CLASS:function(a,b){return(\" \"+(a.className||a.getAttrib",
162
L"ute(\"class\"))+\" \").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=",
163
L"j.attrHandle[c]?j.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d",
164
L"=c+\"\",f=b[2],e=b[4];return c==null?f===\"!=\":f===\"=\"?d===e:f===\"",
165
L"*=\"?d.indexOf(e)>=\n0:f===\"~=\"?(\" \"+d+\" \").indexOf(e)>=0:!e?d&&",
166
L"c!==!1:f===\"!=\"?d!==e:f===\"^=\"?d.indexOf(e)===0:f===\"$=\"?d.subst",
167
L"r(d.length-e.length)===e:f===\"|=\"?d===e||d.substr(0,e.length+1)===e+",
168
L"\"-\":!1},POS:function(a,b,c,d){var f=j.setFilters[b[2]];if(f)return f",
169
L"(a,c,b,d)}}},D=j.match.POS,E=function(a,b){return\"\\\\\"+(b-0+1)},q;f",
170
L"or(q in j.match)j.match[q]=RegExp(j.match[q].source+/(?![^\\[]*\\])(?!",
171
L"[^\\(]*\\))/.source),j.leftMatch[q]=RegExp(/(^(?:.|\\r|\\n)*?)/.source",
172
L"+j.match[q].source.replace(/\\\\(\\d+)/g,E));var o=function(a,\nb){a=A",
173
L"rray.prototype.slice.call(a,0);if(b)return b.push.apply(b,a),b;return ",
174
L"a};try{Array.prototype.slice.call(document.documentElement.childNodes,",
175
L"0)}catch(F){o=function(a,b){var c=0,d=b||[];if(A.call(a)===\"[object A",
176
L"rray]\")Array.prototype.push.apply(d,a);else if(typeof a.length===\"nu",
177
L"mber\")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.pu",
178
L"sh(a[c]);return d}}var v,r;document.documentElement.compareDocumentPos",
179
L"ition?v=function(a,b){if(a===b)return t=!0,0;if(!a.compareDocumentPosi",
180
L"tion||!b.compareDocumentPosition)return a.compareDocumentPosition?\n-1",
181
L":1;return a.compareDocumentPosition(b)&4?-1:1}:(v=function(a,b){if(a==",
182
L"=b)return t=!0,0;else if(a.sourceIndex&&b.sourceIndex)return a.sourceI",
183
L"ndex-b.sourceIndex;var c,d,f=[],e=[];c=a.parentNode;d=b.parentNode;var",
184
L" h=c;if(c===d)return r(a,b);else if(c){if(!d)return 1}else return-1;fo",
185
L"r(;h;)f.unshift(h),h=h.parentNode;for(h=d;h;)e.unshift(h),h=h.parentNo",
186
L"de;c=f.length;d=e.length;for(h=0;h<c&&h<d;h++)if(f[h]!==e[h])return r(",
187
L"f[h],e[h]);return h===c?r(a,e[h],-1):r(f[h],b,1)},r=function(a,b,c){if",
188
L"(a===b)return c;\nfor(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSi",
189
L"bling}return 1});i.getText=function(a){for(var b=\"\",c,d=0;a[d];d++)c",
190
L"=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b",
191
L"+=i.getText(c.childNodes));return b};(function(){var a=document.create",
192
L"Element(\"div\"),b=\"script\"+(new Date).getTime(),c=document.document",
193
L"Element;a.innerHTML=\"<a name='\"+b+\"'/>\";c.insertBefore(a,c.firstCh",
194
L"ild);if(document.getElementById(b))j.find.ID=function(a,b,c){if(typeof",
195
L" b.getElementById!==\"undefined\"&&!c)return(b=\nb.getElementById(a[1]",
196
L"))?b.id===a[1]||typeof b.getAttributeNode!==\"undefined\"&&b.getAttrib",
197
L"uteNode(\"id\").nodeValue===a[1]?[b]:void 0:[]},j.filter.ID=function(a",
198
L",b){var c=typeof a.getAttributeNode!==\"undefined\"&&a.getAttributeNod",
199
L"e(\"id\");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);",
200
L"c=a=null})();(function(){var a=document.createElement(\"div\");a.appen",
201
L"dChild(document.createComment(\"\"));if(a.getElementsByTagName(\"*\").",
202
L"length>0)j.find.TAG=function(a,c){var d=c.getElementsByTagName(a[1]);i",
203
L"f(a[1]===\n\"*\"){for(var f=[],e=0;d[e];e++)d[e].nodeType===1&&f.push(",
204
L"d[e]);d=f}return d};a.innerHTML=\"<a href='#'></a>\";if(a.firstChild&&",
205
L"typeof a.firstChild.getAttribute!==\"undefined\"&&a.firstChild.getAttr",
206
L"ibute(\"href\")!==\"#\")j.attrHandle.href=function(a){return a.getAttr",
207
L"ibute(\"href\",2)};a=null})();document.querySelectorAll&&function(){va",
208
L"r a=i,b=document.createElement(\"div\");b.innerHTML=\"<p class='TEST'>",
209
L"</p>\";if(!(b.querySelectorAll&&b.querySelectorAll(\".TEST\").length==",
210
L"=0)){i=function(b,c,e,h){c=c||document;if(!h&&\n!i.isXML(c)){var g=/^(",
211
L"\\w+$)|^\\.([\\w\\-]+$)|^#([\\w\\-]+$)/.exec(b);if(g&&(c.nodeType===1|",
212
L"|c.nodeType===9))if(g[1])return o(c.getElementsByTagName(b),e);else if",
213
L"(g[2]&&j.find.CLASS&&c.getElementsByClassName)return o(c.getElementsBy",
214
L"ClassName(g[2]),e);if(c.nodeType===9){if(b===\"body\"&&c.body)return o",
215
L"([c.body],e);else if(g&&g[3]){var l=c.getElementById(g[3]);if(l&&l.par",
216
L"entNode){if(l.id===g[3])return o([l],e)}else return o([],e)}try{return",
217
L" o(c.querySelectorAll(b),e)}catch(p){}}else if(c.nodeType===1&&c.nodeN",
218
L"ame.toLowerCase()!==\n\"object\"){var g=c,m=(l=c.getAttribute(\"id\"))",
219
L"||\"__sizzle__\",n=c.parentNode,k=/^\\s*[+~]/.test(b);l?m=m.replace(/'",
220
L"/g,\"\\\\$&\"):c.setAttribute(\"id\",m);if(k&&n)c=c.parentNode;try{if(",
221
L"!k||n)return o(c.querySelectorAll(\"[id='\"+m+\"'] \"+b),e)}catch(q){}",
222
L"finally{l||g.removeAttribute(\"id\")}}}return a(b,c,e,h)};for(var c in",
223
L" a)i[c]=a[c];b=null}}();(function(){var a=document.documentElement,b=a",
224
L".matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msM",
225
L"atchesSelector;if(b){var c=!b.call(document.createElement(\"div\"),\n",
226
L"\"div\"),d=!1;try{b.call(document.documentElement,\"[test!='']:sizzle",
227
L"\")}catch(f){d=!0}i.matchesSelector=function(a,f){f=f.replace(/\\=\\s*",
228
L"([^'\"\\]]*)\\s*\\]/g,\"='$1']\");if(!i.isXML(a))try{if(d||!j.match.PS",
229
L"EUDO.test(f)&&!/!=/.test(f)){var g=b.call(a,f);if(g||!c||a.document&&a",
230
L".document.nodeType!==11)return g}}catch(l){}return i(f,null,null,[a]).",
231
L"length>0}}})();(function(){var a=document.createElement(\"div\");a.inn",
232
L"erHTML=\"<div class='test e'></div><div class='test'></div>\";if(a.get",
233
L"ElementsByClassName&&a.getElementsByClassName(\"e\").length!==\n0&&(a.",
234
L"lastChild.className=\"e\",a.getElementsByClassName(\"e\").length!==1))",
235
L"j.order.splice(1,0,\"CLASS\"),j.find.CLASS=function(a,c,d){if(typeof c",
236
L".getElementsByClassName!==\"undefined\"&&!d)return c.getElementsByClas",
237
L"sName(a[1])},a=null})();i.contains=document.documentElement.contains?f",
238
L"unction(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:document.doc",
239
L"umentElement.compareDocumentPosition?function(a,b){return!!(a.compareD",
240
L"ocumentPosition(b)&16)}:function(){return!1};i.isXML=function(a){retur",
241
L"n(a=(a?a.ownerDocument||\na:0).documentElement)?a.nodeName!==\"HTML\":",
242
L"!1};var C=function(a,b){for(var c,d=[],f=\"\",e=b.nodeType?[b]:b;c=j.m",
243
L"atch.PSEUDO.exec(a);)f+=c[0],a=a.replace(j.match.PSEUDO,\"\");a=j.rela",
244
L"tive[a]?a+\"*\":a;c=0;for(var h=e.length;c<h;c++)i(a,e[c],d);return i.",
245
L"filter(f,d)};window.Sizzle=i})();",
246
NULL
247
};
248
249
} // namespace atoms
250
} // namespace webdriver
251
252
#endif // WEBDRIVER_SIZZLE_H_
253
254