| @@ 5139-5166 (lines=28) @@ | ||
| 5136 | } |
|
| 5137 | })(); |
|
| 5138 | ||
| 5139 | (function(){ |
|
| 5140 | var div = document.createElement("div"); |
|
| 5141 | ||
| 5142 | div.innerHTML = "<div class='test e'></div><div class='test'></div>"; |
|
| 5143 | ||
| 5144 | // Opera can't find a second classname (in 9.6) |
|
| 5145 | // Also, make sure that getElementsByClassName actually exists |
|
| 5146 | if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { |
|
| 5147 | return; |
|
| 5148 | } |
|
| 5149 | ||
| 5150 | // Safari caches class attributes, doesn't catch changes (in 3.2) |
|
| 5151 | div.lastChild.className = "e"; |
|
| 5152 | ||
| 5153 | if ( div.getElementsByClassName("e").length === 1 ) { |
|
| 5154 | return; |
|
| 5155 | } |
|
| 5156 | ||
| 5157 | Expr.order.splice(1, 0, "CLASS"); |
|
| 5158 | Expr.find.CLASS = function( match, context, isXML ) { |
|
| 5159 | if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { |
|
| 5160 | return context.getElementsByClassName(match[1]); |
|
| 5161 | } |
|
| 5162 | }; |
|
| 5163 | ||
| 5164 | // release memory in IE |
|
| 5165 | div = null; |
|
| 5166 | })(); |
|
| 5167 | ||
| 5168 | function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { |
|
| 5169 | for ( var i = 0, l = checkSet.length; i < l; i++ ) { |
|
| @@ 4482-4509 (lines=28) @@ | ||
| 4479 | } |
|
| 4480 | })(); |
|
| 4481 | ||
| 4482 | (function(){ |
|
| 4483 | var div = document.createElement("div"); |
|
| 4484 | ||
| 4485 | div.innerHTML = "<div class='test e'></div><div class='test'></div>"; |
|
| 4486 | ||
| 4487 | // Opera can't find a second classname (in 9.6) |
|
| 4488 | // Also, make sure that getElementsByClassName actually exists |
|
| 4489 | if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { |
|
| 4490 | return; |
|
| 4491 | } |
|
| 4492 | ||
| 4493 | // Safari caches class attributes, doesn't catch changes (in 3.2) |
|
| 4494 | div.lastChild.className = "e"; |
|
| 4495 | ||
| 4496 | if ( div.getElementsByClassName("e").length === 1 ) { |
|
| 4497 | return; |
|
| 4498 | } |
|
| 4499 | ||
| 4500 | Expr.order.splice(1, 0, "CLASS"); |
|
| 4501 | Expr.find.CLASS = function( match, context, isXML ) { |
|
| 4502 | if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { |
|
| 4503 | return context.getElementsByClassName(match[1]); |
|
| 4504 | } |
|
| 4505 | }; |
|
| 4506 | ||
| 4507 | // release memory in IE |
|
| 4508 | div = null; |
|
| 4509 | })(); |
|
| 4510 | ||
| 4511 | function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { |
|
| 4512 | for ( var i = 0, l = checkSet.length; i < l; i++ ) { |
|