diff options
author | David Serduke <davidserduke@gmail.com> | 2007-12-21 05:47:33 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-12-21 05:47:33 +0000 |
commit | 05930c5a0d667c024c9acd0d087be846990fdcea (patch) | |
tree | 9a13539a9537cd21c8cc840ef76122113a9d5c97 /src | |
parent | c73eadf59952f71f5c55fe9887f1f9e005fe95a4 (diff) | |
download | jquery-05930c5a0d667c024c9acd0d087be846990fdcea.tar.gz jquery-05930c5a0d667c024c9acd0d087be846990fdcea.zip |
Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 + "></" + tag + ">"; }); |