Skip to content

Commit

Permalink
Update morphlex.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Feb 25, 2024
1 parent 5bf5ff2 commit 200334a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/morphlex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function morph(node: ChildNode, guide: ChildNode): void {
morphNodes(node, guide, idMap);
}

// For each node with an ID, push that ID into the IDSet on the IDMap, for each of its parent elements.
function populateIdMapForNode(node: ParentNode, idMap: IdMap): void {
const elementsWithIds: NodeListOf<Element> = node.querySelectorAll("[id]");

Expand Down

0 comments on commit 200334a

Please sign in to comment.