1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-23 15:36:52 +00:00

Fixed problem with erroneous rendering of empty HTML tags

We were doing things like `<div />`, which HTML doesn't like
This commit is contained in:
Jeremy Ruston 2013-01-23 12:36:08 +00:00
parent bae48d5526
commit 83900b0230

View File

@ -140,12 +140,8 @@ ElementRenderer.prototype.render = function(type) {
}
}
}
if(!this.widget.children || this.widget.children.length === 0) {
output.push("/");
}
output.push(">");
}
if(this.widget.children && this.widget.children.length > 0) {
$tw.utils.each(this.widget.children,function(node) {
if(node.render) {
output.push(node.render(type));
@ -154,7 +150,6 @@ ElementRenderer.prototype.render = function(type) {
if(isHtml) {
output.push("</",this.widget.tag,">");
}
}
return output.join("");
};