Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.

This commit is contained in:
David Serduke 2007-12-21 05:47:33 +00:00
parent c73eadf599
commit 05930c5a0d

View 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 + ">";
});