Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:thi-ng/umbrella into develop
Browse files Browse the repository at this point in the history
* 'develop' of github.com:thi-ng/umbrella:
  FIX/packages/sax: make sure CDATA content is parsed into 'body'
  • Loading branch information
postspectacular committed Jul 10, 2024
2 parents 10e0413 + 1733866 commit 4a78897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sax/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ const PARSER: FSMStateMap<ParseState, string, ParseEvent[]> = {
return;
}
}
state.scope[state.scope.length - 1].body = b;
return [{ type: Type.CDATA, body: b }];
} else {
state.body += ch;
Expand Down

0 comments on commit 4a78897

Please sign in to comment.