News for hackers. Stuff that matters.
Re:Seeking an Answer: Why can't HTML alone do includes? by gyesxnuibh on Saturday May 03, 2025 @11:30AM (#43879720)
What's the ML in HTML stand for? I think that's probably the crux of the argument. Are we gonna evolve it past its name?
Re:Seeking an Answer: Why can't HTML alone do includes? by cantSpellSober on Saturday May 03, 2025 @11:33AM (#43879739)
That's why I joked about flamebait, it's hypertext though, aren't anchors essentially a goToURL() click handler in some ways? Template partials seem like a basic part of this system.

> considered to be server-side

Good point! Wouldn't fetching a template partial happen the same way (like fetching an image?)

Re:Seeking an Answer: Why can't HTML alone do includes? by Aloisius on Saturday May 03, 2025 @01:47PM (#43880757)
If the issue is that "include" somehow makes it sound like it's not markup, the solution seems obvious. Just use the src attribute on other tags:

<html src="/some/page.html">, <div src="/some/div.html">, <span src="/some/span.html">, etc.

Or create a new tag that's a noun like fragment, page, document, subdoc or something.

Surely that's no less markup than svg, img, script, video, iframe, and what not.

Re:Seeking an Answer: Why can't HTML alone do includes? by mattl on Saturday May 03, 2025 @05:34PM (#43882522)
> What's the ML in HTML stand for?

I always assumed it stood for my initials.

Re:Seeking an Answer: Why can't HTML alone do includes? by int_19h on Saturday May 03, 2025 @07:42PM (#43883271)
It stands for "markup language", and was inherited from SGML, which had includes. Strictly speaking, so did early HTML (since it was just an SGML subset), it's just that browsers didn't bother implementing it, for the most part. So it's not that it didn't evolve, but rather it devolved.

Nor is this something unique to SGML. XML is also a "markup language", yet XInclude is a thing.

Re:Seeking an Answer: Why can't HTML alone do includes? by DemocracyFTW2 on Sunday May 04, 2025 @04:35AM (#43885399)
> It stands for "markup language", and was inherited from SGML, which had includes

touchay!!