]> source.dussan.org Git - jquery.git/commitdiff
Fixed #2084 by added embed to the list of elements where it is ok to have self closin...
authorDavid Serduke <davidserduke@gmail.com>
Fri, 21 Dec 2007 05:47:33 +0000 (05:47 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Fri, 21 Dec 2007 05:47:33 +0000 (05:47 +0000)
src/core.js

index 10db3edafc674327750eb9bc7c1678577af80562..b5a1c7072030a85dda77baf3472d9f63f2d7badb 100644 (file)
@@ -934,7 +934,7 @@ jQuery.extend({
                        if ( typeof elem == "string" ) {
                                // Fix "XHTML"-style tags in all browsers
                                elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
-                                       return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i) ?
+                                       return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
                                                all :
                                                front + "></" + tag + ">";
                                });