Recent submissions

Comment · 5 months ago
That's a valid opinion!
Comment · 5 months ago
At the moment - you can treat it as a single "search & replace", and not as a replace all. And yes JS can do the rest atm. Hopefully introducing this (and processing instructions in general) can lead to additional enhancements in the future. But it would have to be gradual, kind of like how modern CSS evolved.
Comment · 5 months ago
This would end up as:

<div> Here is some <em>HTML content</em>! <?marker name="placeholder"> <?marker name="placeholder1"> </div>

(only the first matching marker set is replaced.

Comment · 5 months ago
Are you referring to the sentence about the polyfill? Seems like "shipping a polyfill for X before X lands in all browsers" is a reasonable thing to say? Donno
Comment · 5 months ago
It's also a processing instruction rather than an element, which makes it possible to put it inside e.g. a <table> element and partially replace some rows.
Comment · 5 months ago
Sure, but how is this related to out of order streaming?
Comment · 5 months ago
(and this is correct, the start/end marker need to be siblings. You can't input something that starts in one parent and ends in another.)
Comment · 5 months ago
Yea we've been working with Mozilla and Apple on that one as well but they haven't responded to the standards position yet. I am sure that we'll reach something that's within consensus.
Comment · 5 months ago
How would that work? I think you posted something on the github but I don't think what you're conceiving here is possible with this API. It just reroutes HTML insertions from the template to a different location, there is no duplication.
Comment · 5 months ago
Definitely an inspiration but less opinionated.
Comment · 5 months ago
We've worked on the design closely together with Mozilla/Apple folks and with multiple external partners that want to use it.
Comment · 5 months ago
How would you expect it to be in all the browsers before one of the browsers ships it first? We are seeking as much consensus as we can. It's an odd expectation.
Comment · 5 months ago
We're working together with Jake on this. I do hope that processing instructions can help with highlights in the future.
Comment · 5 months ago
It's expressed in terms of changing the output of where bides are inserted. Instead of new nodes being inserted to the template elements, they are inserted where the processing instructions were found.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton