Skip to content

Commit

Permalink
fix parsing of doctype after comment
Browse files Browse the repository at this point in the history
  • Loading branch information
henninghall authored Nov 14, 2024
1 parent bba8b3f commit de28d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export function parse(source: string, middleware?: Middleware): JsxAST | null {
}

if (/\S/.test(text)) {
children.push(text);
children?.push(text);
}

if (source[i] === '<') {
Expand Down

0 comments on commit de28d66

Please sign in to comment.