Side-by-side before/after demos for bug fixes contributed to bigskysoftware/htmx. Each demo loads two builds of htmx from the same base commit, differing only by the proposed patch.
swapWithStyle() has no case for textContent, so OOB textContent swaps fall through to innerHTML and parse markup as HTML instead of inserting it as literal text.
classList.remove() instead of htmx's existing removeClassFromElement(), leaving an empty class="" attribute on elements that had no classes before the htmx operation.