Repository navigation
Commit f0e25a7
committed
fix(legacy-html): copy its input on the main thread
Building a page splices the heading out of its entries' content and
replaces the stability nodes, and on the main thread those entries are
the metadata other generators read. With one thread, building
`legacy-html` with other targets crashed (`Cannot read properties of
undefined (reading 'tagName')`), on `main` too. It now works on a copy
there, as it already does in a worker.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent dee4af9 commit f0e25a7
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
0 commit comments