Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.
This commit is contained in:
parent
c73eadf599
commit
05930c5a0d
1 changed files with 1 additions and 1 deletions
|
@ -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 + ">";
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue