mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
@ -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 New Issue
Block a user