Skip to main content

Bug Tracker

Side navigation

Ticket #3763: fix-attr.patch
File fix-attr.patch, 0.4 KB (added by amikitik, December 31, 2008 05:23PM UTC)
--- jquery-1.2.6.js	2008-07-23 13:25:25.000000000 -0400
+++ jquery-1.2.6.fix.js	2008-12-31 12:22:15.000000000 -0500
@@ -1037,7 +1037,7 @@
 
 	attr: function( elem, name, value ) {
 		// don't set attributes on text and comment nodes
-		if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
+		if (!elem || elem.nodeType == 3 || elem.nodeType == 8 || elem.nodeType == undefined)
 			return undefined;
 
 		var notxml = !jQuery.isXMLDoc( elem ),

Download in other formats:

Original Format