4 ms·
Replace htmx with alpine js and I think the twitterers have some point. Eh, probably even with htmx. It is true that the average WordPress developer might not
by moritzwarhier 3y ago
Replace htmx with alpine js and I think the twitterers have some point. Eh, probably even with htmx.
It is true that the average WordPress developer might not care about XSS, and to refute one specific point: I have seen third-party returning HTML, plenty of them.
Deliberately acting on the contents response instead of directly executing code from said party forces you to think about XSS.
But it's not specific to htmx of course, it would be the same when using innerHTML or something while using a field in a JSON API response.
It's true that frameworks like React have safer defaults than Vanilla JS in that regard.