mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 20:29:10 +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:
parent
bae48d5526
commit
83900b0230
@ -140,20 +140,15 @@ ElementRenderer.prototype.render = function(type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!this.widget.children || this.widget.children.length === 0) {
|
|
||||||
output.push("/");
|
|
||||||
}
|
|
||||||
output.push(">");
|
output.push(">");
|
||||||
}
|
}
|
||||||
if(this.widget.children && this.widget.children.length > 0) {
|
$tw.utils.each(this.widget.children,function(node) {
|
||||||
$tw.utils.each(this.widget.children,function(node) {
|
if(node.render) {
|
||||||
if(node.render) {
|
output.push(node.render(type));
|
||||||
output.push(node.render(type));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if(isHtml) {
|
|
||||||
output.push("</",this.widget.tag,">");
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
if(isHtml) {
|
||||||
|
output.push("</",this.widget.tag,">");
|
||||||
}
|
}
|
||||||
return output.join("");
|
return output.join("");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user