From: David Serduke Date: Fri, 21 Dec 2007 05:47:33 +0000 (+0000) Subject: Fixed #2084 by added embed to the list of elements where it is ok to have self closin... X-Git-Tag: 1.2.2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05930c5a0d667c024c9acd0d087be846990fdcea;p=jquery.git Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml. --- diff --git a/src/core.js b/src/core.js index 10db3edaf..b5a1c7072 100644 --- a/src/core.js +++ b/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 + ">"; });