mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-07-08 04:54:23 +00:00
Don't render content or closing tag for void elements
This commit is contained in:
parent
c85acd71fe
commit
5df60aaa3c
|
@ -142,6 +142,7 @@ ElementRenderer.prototype.render = function(type) {
|
||||||
}
|
}
|
||||||
output.push(">\n");
|
output.push(">\n");
|
||||||
}
|
}
|
||||||
|
if($tw.config.htmlVoidElements.indexOf(this.widget.tag) === -1) {
|
||||||
$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));
|
||||||
|
@ -150,6 +151,7 @@ ElementRenderer.prototype.render = function(type) {
|
||||||
if(isHtml) {
|
if(isHtml) {
|
||||||
output.push("</",this.widget.tag,">\n");
|
output.push("</",this.widget.tag,">\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return output.join("");
|
return output.join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user