Commit 022855e
fix: support textContent swap style for hx-swap-oob (#3563)
swapWithStyle() handled none, outerHTML, afterbegin, beforebegin,
beforeend, afterend, and delete, but had no case for textContent.
Falling through to the default branch caused textContent OOB swaps
to be treated as innerHTML, parsing the response body as HTML
instead of inserting it as literal text.
Mirrors the main-swap textContent handling, which sets
target.textContent directly without parsing as HTML.
Fixes #3563
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d53932d commit 022855e
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1818 | 1818 | | |
1819 | 1819 | | |
1820 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
1821 | 1824 | | |
1822 | 1825 | | |
1823 | 1826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
131 | 153 | | |
132 | 154 | | |
133 | 155 | | |
| |||
0 commit comments