Commit ffce998
committed
[Toolkit] Make HTML snapshots stable across libxml versions
When an attribute value contains a double quote, libxml < 2.14 switches the
whole attribute to single quotes, while >= 2.14 keeps double quotes and escapes
the inner ones as ". The rendering snapshots therefore depend on the libxml
the suite happens to run against.
Normalize on the escaped form, next to the entity normalization already there
for the same 2.14 boundary. This fixes the `calendar` recipe, whose JSON-valued
Stimulus attributes hit the case on every example, and the `post-link` snapshot,
which until now only matched on libxml < 2.14.
Claude-Session: https://claude.ai/code/session_01UnZ3JkQ2pyVz2fYvA83p3D1 parent f2a8708 commit ffce998
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- src/Toolkit/tests/Functional
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments