Side navigation
    Ticket #2035: 2035.diff
  
  
  
    File 2035.diff, 0.6 KB (added by ebartels, March 12, 2008 10:00PM UTC)
    
  
  
    
      
      diff --git a/src/core.js b/src/core.js
index de82d77..a99efd2 100644
--- a/src/core.js
+++ b/src/core.js
@@ -957,7 +957,7 @@ jQuery.extend({
 			// Convert html string into DOM nodes
 			if ( typeof elem == "string" ) {
 				// Fix "XHTML"-style tags in all browsers
-				elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
+				elem = elem.replace(new RegExp("/(<(\w+)[^>]*?)\/>", "g"), function(all, front, tag){
 					return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
 						all :
 						front + "></" + tag + ">";
    
  
  
    Download in other formats:
    Original Format
  
File 2035.diff, 0.6 KB (added by ebartels, March 12, 2008 10:00PM UTC)
diff --git a/src/core.js b/src/core.js
index de82d77..a99efd2 100644
--- a/src/core.js
+++ b/src/core.js
@@ -957,7 +957,7 @@ jQuery.extend({
 			// Convert html string into DOM nodes
 			if ( typeof elem == "string" ) {
 				// Fix "XHTML"-style tags in all browsers
-				elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
+				elem = elem.replace(new RegExp("/(<(\w+)[^>]*?)\/>", "g"), function(all, front, tag){
 					return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
 						all :
 						front + "></" + tag + ">";