Commit 710f3cb
fix: drop empty text nodes left behind by whitespace stripping
After strip flags trim surrounding whitespace, TextNodes whose chars
become empty would still appear in the body as spurious append calls
in the wire format. Remove them in a second pass after stripping.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 31df8ef commit 710f3cb
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
347 | 355 | | |
348 | 356 | | |
349 | 357 | | |
| |||
0 commit comments