André
André
I never really thought about that. But I seem to misuse DELETE with data bodies. I did it recently when I wanted to drop a bunch of ids from a...
Sounds fine to me to change that in 2.0. Even more when it is not disallowed by RFC but "just not defined". How about introducing deprecation warnings?
Would be cool for v2 by default, because people will have to expect breaking changes. Doing it in v1 just before v2 is released doesn’t sound good for me.
You could change the default swap style to outerHTML to also swap the body. Or hook to afterSwap and call htmx.process on body. How are the new classes added to...
I usually send the most recent data in the first full page response and only then use Ajax calls to refresh. I don't think it's cool to render any page...
I use https://htmx.org/extensions/loading-states/ for similar things.
The first of both is not valid JSON. It must be quoted by "
I don’t quiet get it. You can POST (or method‘) everything to every public listener. People can also just remove attributes by editing the DOM. Or add them. :)
Hm, what about something along hx-on "htmx:afterRequest if e.detail.successful then reset next form"? Since you are sending the form and await an answer, you could also just resend the plain...
A quick and dirty beginning to hook beforeSwap: ``` htmx.defineExtension("dl", { onEvent: function (name, evt) { if (name === "htmx:beforeSwap") { const contentType = evt.detail.xhr.getResponseHeader("Content-Type"); filename = "getmesomewhere" document.body.appendChild(Object.assign(document.createElement('a'), {...