feat(render): add generic view factory based on the template commands
Part of #3605 Closes #4367
This commit is contained in:
@ -119,7 +119,8 @@ export function stringifyElement(el): string {
|
||||
result += '>';
|
||||
|
||||
// Children
|
||||
var children = DOM.childNodes(DOM.templateAwareRoot(el));
|
||||
var childrenRoot = DOM.templateAwareRoot(el);
|
||||
var children = isPresent(childrenRoot) ? DOM.childNodes(childrenRoot) : [];
|
||||
for (let j = 0; j < children.length; j++) {
|
||||
result += stringifyElement(children[j]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user