News for hackers. Stuff that matters.
Re:You no longer need JavaScript: an overview of what makes ... by interstice on Thursday August 28, 2025 @09:19PM (#45058930)
> You are allowed to just make up elements as long as their names contain a hyphen

RIP any semblance of using meaningful tags for machine readability I guess.

Re:You no longer need JavaScript: an overview of what makes ... by rebane2001 on Thursday August 28, 2025 @09:26PM (#45058975)
it's a lot more readable than a bunch of divs

if an element that semantically fits your needs already exists you don't need to make up an element in the first place

Re:You no longer need JavaScript: an overview of what makes ... by mixmastamyk on Thursday August 28, 2025 @11:33PM (#45059849)
Hmmm, I thought you had to register these with JS first, but my browser seems to recognize them.
Re:You no longer need JavaScript: an overview of what makes ... by voat on Thursday August 28, 2025 @09:33PM (#45059016)
And even if they don't contain a hyphen! You can just <use> <anything> <you> <want>
Re:You no longer need JavaScript: an overview of what makes ... by masklinn on Friday August 29, 2025 @01:25AM (#45060531)
The soft-requirement for hyphens is a form of namespacing: nothing precludes whatwg from adding <use> or <want> elements to HTML in the future, and that would conflict with and possibly break your page.
Re:You no longer need JavaScript: an overview of what makes ... by 1718627440 on Friday August 29, 2025 @05:50AM (#45062110)
To prove your point, <use> already exists although in SVG. https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...
Re:You no longer need JavaScript: an overview of what makes ... by nozzlegear on Thursday August 28, 2025 @10:03PM (#45059216)
What's the use case for machine readability these days?
Re:You no longer need JavaScript: an overview of what makes ... by timeon on Friday August 29, 2025 @05:42AM (#45062064)
We could have that with XHTML+DTDs...