diff --git a/src/core.js b/src/core.js
index de82d77..a99efd2 100644
a
|
b
|
jQuery.extend({ |
957 | 957 | // Convert html string into DOM nodes |
958 | 958 | if ( typeof elem == "string" ) { |
959 | 959 | // Fix "XHTML"-style tags in all browsers |
960 | | elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ |
| 960 | elem = elem.replace(new RegExp("/(<(\w+)[^>]*?)\/>", "g"), function(all, front, tag){ |
961 | 961 | return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? |
962 | 962 | all : |
963 | 963 | front + "></" + tag + ">"; |