| @@ 5242-5256 (lines=15) @@ | ||
| 5239 | } |
|
| 5240 | } |
|
| 5241 | ||
| 5242 | if ( document.documentElement.contains ) { |
|
| 5243 | Sizzle.contains = function( a, b ) { |
|
| 5244 | return a !== b && (a.contains ? a.contains(b) : true); |
|
| 5245 | }; |
|
| 5246 | ||
| 5247 | } else if ( document.documentElement.compareDocumentPosition ) { |
|
| 5248 | Sizzle.contains = function( a, b ) { |
|
| 5249 | return !!(a.compareDocumentPosition(b) & 16); |
|
| 5250 | }; |
|
| 5251 | ||
| 5252 | } else { |
|
| 5253 | Sizzle.contains = function() { |
|
| 5254 | return false; |
|
| 5255 | }; |
|
| 5256 | } |
|
| 5257 | ||
| 5258 | Sizzle.isXML = function( elem ) { |
|
| 5259 | // documentElement is verified for cases where it doesn't yet exist |
|
| @@ 4585-4599 (lines=15) @@ | ||
| 4582 | } |
|
| 4583 | } |
|
| 4584 | ||
| 4585 | if ( document.documentElement.contains ) { |
|
| 4586 | Sizzle.contains = function( a, b ) { |
|
| 4587 | return a !== b && (a.contains ? a.contains(b) : true); |
|
| 4588 | }; |
|
| 4589 | ||
| 4590 | } else if ( document.documentElement.compareDocumentPosition ) { |
|
| 4591 | Sizzle.contains = function( a, b ) { |
|
| 4592 | return !!(a.compareDocumentPosition(b) & 16); |
|
| 4593 | }; |
|
| 4594 | ||
| 4595 | } else { |
|
| 4596 | Sizzle.contains = function() { |
|
| 4597 | return false; |
|
| 4598 | }; |
|
| 4599 | } |
|
| 4600 | ||
| 4601 | Sizzle.isXML = function( elem ) { |
|
| 4602 | // documentElement is verified for cases where it doesn't yet exist |
|