Repository navigation
Commit 2748ea7
committed
fix(html): escape a bare
The XML minifier kept the source's spelling of a text or attribute value
whenever it was shorter, so an `&` opening no reference (`a & b`, `&`
the input ran out in) was written back bare and the output was not
well-formed. Keep the source spelling only where every `&` opens a
reference.
Claude-Session: https://claude.ai/code/session_01Bqhj38umy4coKMvXQT28NV& in minified XML1 parent 3cb5202 commit 2748ea7
5 files changed
Lines changed: 36 additions & 8 deletions
File tree
- .changeset
- lib/html
- test/unitCases/html
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6392 | 6392 | | |
6393 | 6393 | | |
6394 | 6394 | | |
| 6395 | + | |
| 6396 | + | |
| 6397 | + | |
| 6398 | + | |
6395 | 6399 | | |
6396 | 6400 | | |
6397 | 6401 | | |
| |||
6523 | 6527 | | |
6524 | 6528 | | |
6525 | 6529 | | |
| 6530 | + | |
| 6531 | + | |
| 6532 | + | |
| 6533 | + | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
| 6538 | + | |
6526 | 6539 | | |
6527 | 6540 | | |
6528 | 6541 | | |
| |||
13377 | 13390 | | |
13378 | 13391 | | |
13379 | 13392 | | |
13380 | | - | |
| 13393 | + | |
13381 | 13394 | | |
13382 | 13395 | | |
13383 | 13396 | | |
| |||
15779 | 15792 | | |
15780 | 15793 | | |
15781 | 15794 | | |
| 15795 | + | |
15782 | 15796 | | |
15783 | 15797 | | |
15784 | 15798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
343 | | - | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4196 | 4196 | | |
4197 | 4197 | | |
4198 | 4198 | | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
4199 | 4210 | | |
4200 | 4211 | | |
4201 | 4212 | | |
| |||
0 commit comments