Repository navigation
Commit 91aa3f5
committed
fix(hydration): record stale innerHTML on undo list and use keepsServerValue in htextSwap structural arm
- setHTML: call hydration.save(el) before the stale-capture path falls
through to the general innerHTML write, so a speculative attempt that
rolls back restores the original server content instead of leaving
the client HTML in place.
- htextSwap: replace isHydrationSuppressed(host) with
this.keepsServerValue(host) in the structural (no-text-node) arm,
so a suppressed host under stale captures installs the client text
instead of an empty tracking node that a same-value update would
never patch.1 parent af7724c commit 91aa3f5
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21504 | 21504 | | |
21505 | 21505 | | |
21506 | 21506 | | |
21507 | | - | |
| 21507 | + | |
21508 | 21508 | | |
21509 | 21509 | | |
21510 | 21510 | | |
21511 | 21511 | | |
21512 | 21512 | | |
21513 | | - | |
| 21513 | + | |
21514 | 21514 | | |
21515 | 21515 | | |
21516 | 21516 | | |
| |||
21521 | 21521 | | |
21522 | 21522 | | |
21523 | 21523 | | |
21524 | | - | |
| 21524 | + | |
21525 | 21525 | | |
21526 | 21526 | | |
21527 | 21527 | | |
| |||
24117 | 24117 | | |
24118 | 24118 | | |
24119 | 24119 | | |
24120 | | - | |
| 24120 | + | |
24121 | 24121 | | |
24122 | 24122 | | |
24123 | 24123 | | |
| |||
24128 | 24128 | | |
24129 | 24129 | | |
24130 | 24130 | | |
| 24131 | + | |
24131 | 24132 | | |
24132 | 24133 | | |
24133 | 24134 | | |
| |||
0 commit comments