htmx
htmx copied to clipboard
hx-swap: make swap style optional and log an error when an unknown modifier is used
This makes the swap style innerHTML, outerHTML etc. in hx-swap optional and improves the handling of unknown values.
@David-Guillot you have requested something like that in https://github.com/bigskysoftware/htmx/issues/407#issuecomment-876543782