Working on my templating engine Templado this afternoon - but getting frustrated.
How did PHP - the language of the web - manage to lack behind DOM Standards so badly? Apart from bizarre bugs, basic things are just missing: DOMNode::isConnected or at least DOMNode::compareDocumentPosition are just missing. PHPStorm claims the latter exists, but that's just a lie... sigh
Can't we just throw away libxml2 and use a modern standard supporting implementation from someone else? #frustrated#dom
@theseer I’m not sure whether this helps, but I came across this project that seems to be an attempt to keep up-to-date with the W3C DOM standard. https://github.com/PhpGt/Dom
@theseer I'm willing to spend some time implementing some of the more recent DOM stuff. The two example you showed sound easy enough to implement. If I had a ranked list of "most wanted" DOM features then I can spend some time implementing those. It's important to prioritise. Depending on how much free time I can and want to spend on it of course.
My intuition tells me that #htmx's hx-swap attr will suffice for many dynamic #web behaviors but there's a point where the abstractions will start to leak and you'll want full control over #DOM again.
As an example; my app is a mastodon client; it fetches a list of statuses and renders them. When the user has read them all, they may fetch the next page. With HTMX you could hx-swap the next page into the list. But what if the items have been reordered, what if some of them have been deleted or edited? A simple DOM append won't cut it.
I speak highly of htmx, but it isn't a "replacement" for anything; I see it more as something that is intended for a specific class of applications. Probably best for thin-client applications, that allow more than just navigating using hyperlinks, and sending form data over POST requests.
If a team is using htmx, I find that the team should be responsible to make it clear that the web application is more a thin-client application that provides a UX that is very similar to paper forms.
If stakeholders want more, it's time to transition away from htmx and onto something else, IMO
Köln wird ja im Allgemeinen die Domstadt genannt. Dabei hat Köln nur einen einzigen Dom und nur ein einziges L. Berlin hat drei Dömer. Zwei elegante (der Französische Dom und der Deutscher Dom) beide am Gendarmenmarkt und den Dicken Dom - den Berliner Dom in Alt Kölln.
Mitten in Berlin an der Spree liegt also die Domstadt Kölln (mit zwei L) und da findet man den Dom direkt neben dem Lustgarten.