htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Empty class elements left after swap

Open dmcg opened this issue 1 year ago • 3 comments

Inspecting the page after a swap, htmx leaves an empty class=“” attribute on the target element. It’s benign, but means that the resulting page is not the same as the a page for the same server state rendered from scratch, which makes testing harder.

You can see the problem in https://youtu.be/qYuSr__OiHk at 23:15

dmcg avatar Aug 18 '23 06:08 dmcg