Readit News logoReadit News
youngtaff commented on "Remove mentions of XSLT from the html spec"   github.com/whatwg/html/pu... · Posted by u/troupo
em-bee · 6 days ago
the specific answer that i linked to does work. i have verified that too.

application/xml is not the same as application/rss+xml. application/xml also loads javascript just fine. again, i tested that. so far i have not found a single mimetype that can load xslt, but could not load javascript. i am coming to believe that there isn't one. if xslt works, then javascript works too.

whether javascript itself is a suitable replacement for xslt is not the question. your argument was that it is not possible to replace the builtin xslt support with anything written in javascript, because xml files can't load javascript.

since i have now verified that an xml file that can load xslt in the browser can also load javascript, this is proven wrong. all we need now is a good xslt implementation written in javascript or maybe a good binding to a wasm one and then we are ready to remove the builtin xslt support in the browser.

youngtaff · 6 days ago
I too spent a chunk of time seeing what worked and what it looks like…

JS referenced by the XML can manipulate the XML but it frequently executes before the XML DOM is ready (even when waiting for onload) and so misses elements

So while possible it’s a pretty horrible experience to translate XML to HTML using JS - the declarative approach is more reliable and easier IMV

The XSLT polyfill doesn’t seem to work when loaded as a script in an XML doc but not quite sure why ATM

application/xml is commonly used for RSS feeds on static hosts because it’s the correct mimetype for say a feeds.xml response

youngtaff commented on "Remove mentions of XSLT from the html spec"   github.com/whatwg/html/pu... · Posted by u/troupo
em-bee · 7 days ago
if you know that the solution does not work, then just say so and maybe explain why, instead of being snarky.

all i did was to share a link to a resource. if you don't trust that resource you need to do your own testing. what ever i say, whether i tested it or not, doesn't add much more value. you can't trust my words any more than the resource i linked.

you asked half a dozen times in the last few days how a plain xml file can be transformed without xslt. and you claimed that xslt can be used to transform an rss feed.

well, guess what, i just tested this: an rss feed with the standard mimetype application/rss+xml doesn't load either an xsl stylesheet or javascript. to make that work you have to change the mimetype, and if you do that, both the xsl stylesheet or the javascript load. (just not both at the same time)

youngtaff · 6 days ago
At least one of the suggested answers in SO doesn’t work and the other is somewhat painful

Why answer if you don’t know the answer

Here’s one that used application/xml and it works https://www.ellyloel.com/feed.rss

People are using xslt in the wild today and JS isn’t really a replacement

youngtaff commented on "Remove mentions of XSLT from the html spec"   github.com/whatwg/html/pu... · Posted by u/troupo
em-bee · 9 days ago
i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong?
youngtaff · 7 days ago
Perhaps you should have tried testing it before commenting?
youngtaff commented on XSLT removal will break multiple government and regulatory sites   github.com/whatwg/html/is... · Posted by u/colejohnson66
ioasuncvinvaer · 7 days ago
By rendering it on the server and serving it to the client.
youngtaff · 7 days ago
And is that RSS feed is part pf a blog that’s static content?
youngtaff commented on XSLT removal will break multiple government and regulatory sites   github.com/whatwg/html/is... · Posted by u/colejohnson66
kstrauser · 7 days ago
None of those could be implemented in JavaScript or WASM. XSLT could.

Say what you will about the popularity of each of them, but they can't exist without browser implementations. XSLT can be replaced with a polyfill.

youngtaff · 7 days ago
> XSLT can be replaced with a polyfill

Show me how a polyfill allows me to type https://example.com/rss.xml in the URL bar and have it transformed to HTML in the browser?

youngtaff commented on XSLT removal will break multiple government and regulatory sites   github.com/whatwg/html/is... · Posted by u/colejohnson66
ioasuncvinvaer · 7 days ago
The google people provided exactly that. A WASM polyfill.
youngtaff · 7 days ago
Not really… it needs a HTML to load the polyfill and transform the XML

You can’t have the browser load an XML file and have it transformed automatically as happens now

youngtaff commented on XSLT removal will break multiple government and regulatory sites   github.com/whatwg/html/is... · Posted by u/colejohnson66
ioasuncvinvaer · 7 days ago
html?
youngtaff · 7 days ago
How do you create a HTML RSS feed?
youngtaff commented on The warning signs the AI bubble is about to burst   telegraph.co.uk/business/... · Posted by u/taimurkazmi
mmaunder · 8 days ago
NVidia’s PE is below 60 and they have 100% year over year revenue growth. A bubble is typically based on future earnings potential Nvidia is a money printing growth creating machine.
youngtaff · 8 days ago
NVidia is selling “shovels to gold prospectors”
youngtaff commented on Administration will review all 55M visa holders for deportable violations   apnews.com/article/trump-... · Posted by u/anigbrowl
barbazoo · 8 days ago
There are obviously N groups but one you're missing might be the people that just don't think it's a topic that fits the purpose of this space, at least how it's stated in the guidelines.

> On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.

> Off-Topic: Most stories about politics, or crime, or sports, or celebrities, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.

I can't help but feel that stories like these fall under "off-topic".

youngtaff · 8 days ago
The story about the British Queen dying wasn’t flagged as off topic and that was exhaustively covered by media world wide
youngtaff commented on I forced every engineer to take sales calls and they rewrote our platform   old.reddit.com/r/Entrepre... · Posted by u/bilsbie
dcastonguay · 9 days ago
> At the end of it, they were sketching a completely different architecture without my "PMing". Because they finally understood who was actually using our product.

I cannot help but read this whole experience as: “We forced an engineer to take sales calls and we found out that the issue was that our PMs are doing a terrible job communicating between customer and engineering, and our DevOps engineer is more capable/actionable at turning customer needs into working solutions.”

youngtaff · 9 days ago
Even in orgs with product managers, engineers can have a really bad habit of wanting to rewrite stuff, or designing things the way they want them to work instead of focusing on customer needs and problems

u/youngtaff

KarmaCake day2607December 14, 2010View Original