Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nomsternom
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
nomsternom
4mo ago
That's a valid opinion!
2.
▲
by
nomsternom
4mo 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
3.
▲
by
nomsternom
4mo 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 rep
4.
▲
by
nomsternom
4mo 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
5.
▲
by
nomsternom
4mo 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.
6.
▲
by
nomsternom
4mo ago
Sure, but how is this related to out of order streaming?
7.
▲
by
nomsternom
4mo 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.)
8.
▲
by
nomsternom
4mo 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.
9.
▲
by
nomsternom
4mo 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 dupli
10.
▲
by
nomsternom
4mo ago
Definitely an inspiration but less opinionated.
11.
▲
by
nomsternom
4mo ago
We've worked on the design closely together with Mozilla/Apple folks and with multiple external partners that want to use it.
12.
▲
by
nomsternom
4mo 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.
13.
▲
by
nomsternom
4mo ago
We're working together with Jake on this. I do hope that processing instructions can help with highlights in the future.
14.
▲
by
nomsternom
4mo 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.