Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use the isXML function from Sizzle.

  • Loading branch information...
commit 19ad49e607e91919210a766e17f67f0fc6af7af1 1 parent 3f7fc25
@jeresig jeresig authored
Showing with 1 addition and 8 deletions.
  1. +0 −8 src/core.js
  2. +1 −0  src/sizzle-jquery.js
View
8 src/core.js
@@ -342,14 +342,6 @@ jQuery.extend({
return true;
},
- // check if an element is in a (or is an) XML document
- isXMLDoc: function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
- },
-
// Evalulates a script in a global context
globalEval: function( data ) {
if ( data && rnotwhite.test(data) ) {
View
1  src/sizzle-jquery.js
@@ -3,5 +3,6 @@ jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters;
jQuery.unique = Sizzle.uniqueSort;
jQuery.getText = getText;
+jQuery.isXMLDoc = isXML;
return;
Please sign in to comment.
Something went wrong with that request. Please try again.