htmx ... interesting but not valid HTML*

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

htmx ... interesting but not valid HTML*

Post by Albert Wiersch »

This is interesting.
An Introduction to htmx, the HTML-focused Dynamic UI Library

But it doesn't validate*. The new "hx-" attributes it uses don't start with "data-".

*It validates if you prefix attributes with "data-", which is allowed but not commonly done.

I suppose this could still be supported in the next major release of CSS HTML Validator.

Anyone interested in htmx? I absolutely like simpler "middle ground" approach, especially given how bloated today's websites are.

If you want to try a CSS HTML Validator 2024/v24 BETA with preliminary htmx support, then please send me a private message.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Re: htmx ... interesting but not valid HTML

Post by MikeGale »

Interesting.

What is the uptake on the htmx technology? Are a lot of people using it? Is it growing?

Could be a better approach than some of these strait-jacketing "frameworks" that so many are using.

How does it fit sites that are not single pages?
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: htmx ... interesting but not valid HTML

Post by Albert Wiersch »

Good questions. I just learned/heard about htmx recently so uptake is probably not great at this point.

Here is the "official" (I assume) page:
https://htmx.org/

Apparently you can use "data-hx-" attributes as well.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Re: htmx ... interesting but not valid HTML

Post by MikeGale »

Hi,

Thanks for that.

For some time I've thought the web has become a disaster zone. Not only are the pages laden with so much rubbish that you can't read the source, but some "developers" have no idea what they're doing (though they know how to "drive" a "framework" or two), and most of what gets delivered is not content for the "user" but surveillance code and nagware.

This approach might be a way to somewhat fix that. I hope so.

It took several years for the current degeneration to set in, so I imagine that recovery (if it happens) would also take a while.

I don't currently have time to get to the heart of this system, but it looks worth a test drive. I might do that.

My suspicion is that "developers" who have learned all sorts of "frameworks" will be reluctant to ditch them, even if for something better!
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: htmx ... interesting but not valid HTML*

Post by Albert Wiersch »

UPDATE: CSS HTML Validator 2024 is now available and includes support for htmx. Thank you to all who helped test the new htmx support!
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply