diff --git a/core/modules/rendertree/renderers/element.js b/core/modules/rendertree/renderers/element.js index cb746f6df..8b9e41081 100644 --- a/core/modules/rendertree/renderers/element.js +++ b/core/modules/rendertree/renderers/element.js @@ -140,20 +140,15 @@ 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)); - } - }); - if(isHtml) { - output.push(""); + $tw.utils.each(this.widget.children,function(node) { + if(node.render) { + output.push(node.render(type)); } + }); + if(isHtml) { + output.push(""); } return output.join(""); };