14
Semantic AJAX-HTML
(herman.bearblog.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I'm confused. This is exactly what https://htmx.org/attributes/hx-target/ is for since they're already using htmx. This doesn't make sense to add to the html spec unless ajax requests themselves are added such that browsers will do this automatically. Which I don't think anyone wants.
I think the point is that they don't want to have to use a full JS framework (which is what HTMX is) for this behavior.
EDIT: Put another way, if you look at HTMX's "motivation"s:
It seems the author only cares about the final bullet, and thinks the first three are reasonable/acceptable limitations.
I see, I guess I get the point they're making. We can do iframe reloads based on clicks without javascript, why not div reloads. I think framing it as a way of doing this without javascript rather than without a framework would be clearer and a better argument
They're suggesting it should be part of browser behaviour. They couldn't demonstrate it without JS.
Yeah, I missed the part where they wanted it to be built into the browser