Skip to content
Permalink
Browse files
Fixed #2084 by added embed to the list of elements where it is ok to …
…have self closing xhtml.
  • Loading branch information
davids549 committed Dec 21, 2007
1 parent c73eadf commit 05930c5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 + ">";
});

0 comments on commit 05930c5

Please sign in to comment.