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 05930c5a0d667c024c9acd0d087be846990fdcea
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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.
You can’t perform that action at this time.