Skip to main content

Bug Tracker

Side navigation

Ticket #4833: isXml.patch
File isXml.patch, 0.5 KB (added by anotherhero, June 30, 2009 01:00PM UTC)
Index: jquery-1.3.2.js
===================================================================
--- jquery-1.3.2.js	(revision 1116)
+++ jquery-1.3.2.js	(working copy)
@@ -2336,7 +2336,7 @@
 };
 
 var isXML = function(elem){
-	return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+	return elem.nodeType === 9 && elem.documentElement && elem.documentElement.nodeName !== "HTML" ||
 		!!elem.ownerDocument && isXML( elem.ownerDocument );
 };

Download in other formats:

Original Format