Skip to main content

Bug Tracker

Side navigation

Ticket #1086: jquery.clean.diff
File jquery.clean.diff, 0.5 KB (added by brandon, April 03, 2007 03:11AM UTC)

Patch

Index: src/jquery/jquery.js
===================================================================
--- src/jquery/jquery.js	(revision 1619)
+++ src/jquery/jquery.js	(working copy)
@@ -1456,7 +1456,7 @@
 			 // Convert html string into DOM nodes
 			if ( typeof arg == "string" ) {
 				// Trim whitespace, otherwise indexOf won't work as expected
-				var s = jQuery.trim(arg), div = doc.createElement("div"), tb = [];
+				var s = jQuery.trim(arg).toLowerCase(), div = doc.createElement("div"), tb = [];
 
 				var wrap =
 					 // option or optgroup

Download in other formats:

Original Format