Skip to content

Commit

Permalink
fix: fix issue append middle stream
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Apr 7, 2024
1 parent c6b296f commit c1ed210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ async function setChildNodes(oldParent: Node, newParent: Node, walker: Walker) {
await updateNode(checkOld, newNode, walker);
}
} else {
const clonedNewNode = newNode.cloneNode(true);
oldParent.appendChild(clonedNewNode);
insertedNode = newNode.cloneNode(true);
oldParent.appendChild(insertedNode);
}

if (insertedNode?.nodeType === ELEMENT_TYPE) {
Expand Down

0 comments on commit c1ed210

Please sign in to comment.