News for hackers. Stuff that matters.

llcooliovice

Re:Chrome Prototypes HTML Includes on Saturday July 18, 2026 @08:53AM (#48957717)
Chrome are prototyping a declarative client-side include mechanism.

<template src="/partial.html" for=""></template>

Together with the declarative API, it will also include a way to import HTML in JavaScript:

import fragment from "/partial.html" with { type: "fragment" }

Re:Declarative Partial Updates Proposal on Monday October 06, 2025 @02:50PM (#45494844)
HTML primitives for updating parts of a document without a full page refresh
Re:Submit your ideas for Interop 2026 on Saturday September 06, 2025 @01:11AM (#45146777)
Interop is such a good idea, I’m surprised more developers don’t participate.
From Dominic Gannaway, the creator of Inferno, who worked on React at Meta and on Svelte 5 at Vercel. Feels like a hybrid of React and Svelte 3/4.
Re:The time is right for a DOM templating API on Friday June 27, 2025 @03:47PM (#44399718)
> We've explored the reactivity landscape. While early DOM templating proposals didn't include updating, userland systems have thoroughly explored the landscape by now, and discovered good mental models and better and worse implementation approaches. I think we can now zero-in on a system that combines the best features from the different approaches.

AFAIK Ryan Carniato/Solid JS is still exploring what’s possible with signals. I don’t think userland exploration of this space has entirely finished, and further innovation may be possible.

Re:The time is right for a DOM templating API on Friday June 27, 2025 @07:38AM (#44395960)
> If the Records and Tuples proposal were progressing, JSX could maybe create Records with boxes, but that proposal has been stalled, especially on the record identity and box parts that would make it suitable for a JSX semantics.

That proposal hasn’t just stalled, it’s been withdrawn. https://github.com/tc39/proposal-record-tuple/issues/394

It has been replaced by https://github.com/tc39/proposal-composites

Re:The time is right for a DOM templating API on Friday June 27, 2025 @07:32AM (#44395940)
> There are in-flight proposals for very low-level DOM update primitives, like DOM Parts, which target framework implementations, but I think higher-level APIs like full declarative templating can take even more load off, help prove out and complete the lower-level API proposals, and be really impactful for developers and users.

There is an alternative suggestion to DOM parts which might be a better bet: https://github.com/whatwg/dom/issues/736

Re:The time is right for a DOM templating API on Friday June 27, 2025 @07:28AM (#44395912)
Chrome implemented a prototype, then the spec changed and they removed it, then they implemented the new version. I should have been clearer and said Chrome Canary and Firefox Nightly. Not sure when it will reach stable but probably some point this year, they’ve been working on it for ages and Safari is onboard.
Re:The time is right for a DOM templating API on Friday June 27, 2025 @02:54AM (#44394322)
> There's no fundamental templating knowledge that's portable between stacks, and native DOM creation APIs like innerHTML are unsafe by default.

setHTML() is already implemented in Chrome/Edge and Firefox so this point is a bit outdated - there is a safe alternative to innerHTML.

Re:The time is right for a DOM templating API on Friday June 27, 2025 @02:38AM (#44394239)
There is still innovation happening in frameworks. I do wonder if it is too early to start adding things like this to the browser. Web components landed way too early and now we’re stuck with them.
Re: on Sunday March 16, 2025 @09:07PM (#43384187)
A better non-modal dialog using the popover API.
Re:AV1 video codec gains broader hardware support on Tuesday October 31, 2023 @08:16AM (#38083589)
Now supported by the Apple M3 chips.
Re:Tables no longer needed for HTML email on Saturday April 08, 2023 @05:26PM (#35497800)
With the modernisation of Microsoft Outlook, if will finally be possible to code an email in a semi-modern way.