Commit 19ad49e6 authored by John Resig's avatar John Resig

Use the isXML function from Sizzle.

parent 3f7fc254
...@@ -342,14 +342,6 @@ jQuery.extend({ ...@@ -342,14 +342,6 @@ jQuery.extend({
return true; 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 // Evalulates a script in a global context
globalEval: function( data ) { globalEval: function( data ) {
if ( data && rnotwhite.test(data) ) { if ( data && rnotwhite.test(data) ) {
......
...@@ -3,5 +3,6 @@ jQuery.expr = Sizzle.selectors; ...@@ -3,5 +3,6 @@ jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters; jQuery.expr[":"] = jQuery.expr.filters;
jQuery.unique = Sizzle.uniqueSort; jQuery.unique = Sizzle.uniqueSort;
jQuery.getText = getText; jQuery.getText = getText;
jQuery.isXMLDoc = isXML;
return; return;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment