aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-06 17:52:31 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-06 17:52:31 -0800
commit19ad49e607e91919210a766e17f67f0fc6af7af1 (patch)
tree7c2ed050861f45aa32a9c0009384dd7a71f326fa
parent3f7fc25494988ee5be66c0af0d552b24f0ca1b79 (diff)
downloadjquery-19ad49e607e91919210a766e17f67f0fc6af7af1.tar.gz
jquery-19ad49e607e91919210a766e17f67f0fc6af7af1.zip
Use the isXML function from Sizzle.
-rw-r--r--src/core.js8
-rw-r--r--src/sizzle-jquery.js1
2 files changed, 1 insertions, 8 deletions
diff --git a/src/core.js b/src/core.js
index 5cb0220e1..b738ce485 100644
--- a/src/core.js
+++ b/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) ) {
diff --git a/src/sizzle-jquery.js b/src/sizzle-jquery.js
index 3d15128c9..cb4c8e173 100644
--- a/src/sizzle-jquery.js
+++ b/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;