htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Extension documentation is misleading on hx-ext usage for sse and ws

Open davewsmith opened this issue 2 months ago • 2 comments

Many of the extensions pages show in their Installation sections that hx-ext belongs on the body element. This isn't correct for the ws and sse extensions.

A simple fix is to remove mention hx-ext from the Installation sections, deferring to the correct examples in the Usage sections.

davewsmith avatar Oct 10 '25 21:10 davewsmith

But without adding the extension to hx-ext attribute on body or some other lower element they will not function right?

MichaelWest22 avatar Oct 11 '25 11:10 MichaelWest22

It won't, and that's covered, completely (and in the case of sse and ws, correctly), in the Usage section of those pages.

davewsmith avatar Oct 11 '25 15:10 davewsmith