Skip to content

Commit

Permalink
fix(client): get template content childNodes in utilities formatDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Mar 4, 2023
1 parent cb084b8 commit c2c0bed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/client/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ function formatDOM(nodes, parent, directive) {
formatTagName(node.nodeName),
formatAttributes(node.attributes)
);
current.children = formatDOM(node.childNodes, current);
current.children = formatDOM(
// template children are on content
node.content ? node.content.childNodes : node.childNodes,
current
);
break;

case 3:
Expand Down

0 comments on commit c2c0bed

Please sign in to comment.