Skip to content

Commit

Permalink
Fix expansionGuard exit called without enter on the outermost entity
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrrp committed Dec 20, 2023
1 parent 33d492d commit bb3cd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom-parsing/parsingAlgorithms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,9 +974,9 @@ export function parseXml(
);
}

expansionGuard.exit();
entityContext = entityContext.parent;
if (entityContext) {
expansionGuard.exit();
domContext = domContext.parent!;
}
}
Expand Down

0 comments on commit bb3cd84

Please sign in to comment.