Not even just without JS. If you middle-click to open a link in a new tab you get just get content that was expected to be swapped in. I think that abusing links is a far bigger sin than adding a custom attribute.
This is why htmx sends requests by default with an HX-Request header so that the server can distinguish between them and serve different content if need be.