Should we remove XSLT from the web platform?

39 edent 26 8/15/2025, 7:37:13 AM github.com ↗

Comments (26)

miki_oomiri · 42m ago
The quality of the github comments: accusing developers of being dictators, being overly emotionally, the hate towards people who actually made the web happen (Smaug, Anne, Emilo, etc…), the "why not just…" or "hire more people" remarks...

For a browser developer, this is depressing. I've worked on Gecko for 10+ years, and we were constantly called names for absolutely any change we would do. Insulted and accused of the worst intentions.

I see it hasn't changed.

edent · 25m ago
Why shouldn't people be overly emotional? Humans are emotional - and that's a good thing.

This change would make people sad because things they like would stop working.

It would cause them stress because they would have to work hard to fix or replace things.

It would cause them anger because some unaccountable people would be making decisions without considering them.

It would make them afraid that those same people might destroy something else which is useful.

These are all valid and useful emotional responses. Telling someone "if you do this it will make me sad" should be useful feedback.

Web developers aren't Vulcans. We have and use emotions.

haburka · 18m ago
It’s ok to have emotions, even as an adult, we all have feelings. However, it’s important to be kind to other humans and to treat humans with respect. Even on the internet, even when people are proposing removing features from a browser. Now it can be difficult to voice opposition without coming off as rude but its definitely an important skill for a professional to have.

I think this is especially true on GitHub where people are using their real professional identities. I’m honestly shocked that anyone can just comment on these proposals given how toxic it gets. Imagine if this is your day to day work environment - you’re trying to improve the web, which is already a tremendously difficult thing while all of these keyboard warriors are insulting you and your efforts. I wouldn’t want to wish that on anyone.

edent · 6m ago
> However, it’s important to be kind to other humans and to treat humans with respect.

Very true. But why is that argument never deployed against the bullies?

Chrome's developers say "We want to do X". People say "No, please don't." Chrome says "I'm not going to respect your wishes."

Where's the equality in that?

> Now it can be difficult to voice opposition without coming off as rude but its definitely an important skill for a professional to have.

The same is also true of people making those proposals. Chrome devs should know (from bitter experience) that releasing a high-handed statement, studiously ignoring all dissent, and then swinging the ban-hammer is going to lead to ill-will.

Again, why isn't anyone calling for them to be more calm and respectful of the people they're hurting?

> I wouldn’t want to wish that on anyone.

I've been on the receiving end and - yes - it sucks. But given that they know these proposals would be contentious, why didn't they approach this in a more respectful and collaborative manner?

perching_aix · 22m ago
> Web developers aren't Vulcans. We have and use emotions.

You might find that the people on their end, too, have and use emotions.

Acknowledging and voicing your emotional and mental position is one thing, that alone doesn't make it overly emotional. What does is being so taken by them, that it ends up trampling on others'.

JimDabell · 56s ago
> Why shouldn't people be overly emotional?

By definition overly emotional is bad – that’s what separates “overly emotional” from just “emotional”.

Regardless, having emotions is not the problem, lashing out at others because of those emotions is the problem.

> These are all valid and useful emotional responses. Telling someone "if you do this it will make me sad" should be useful feedback.

The person you are responding to said:

> we were constantly called names for absolutely any change we would do. Insulted and accused of the worst intentions.

Why are you misrepresenting this as “it will make me sad”?

Kwpolska · 2m ago
Why is it always Google employees that want to kill things?
user____name · 42m ago
The problem with browsers is that they rely on other standards. If a browser needs to maintain backward compatibility and requires an evolving standard that ALSO requires backward compatibility, this acts like a multiplier on implementation complexity. This also means it becomes increasingly difficult to spin up a new browser engine, and the fewer of those there are, the easier it is for the big ones to just add what they want and have it become a standard, reinforcing the issue.
ethan_smith · 4m ago
XSLT adds ~100k lines of specialized code to browser engines with near-zero telemetry usage (<0.01% of page loads), making it a prime example of the maintenance burden vs. utility problem you're describing.
JimDabell · 58m ago
Some recent discussion on XSLT here:

XSLT – Native, zero-config build system for the Web – 27th June 2025 (328 comments):

https://news.ycombinator.com/item?id=44393817

The only useful thing I have seen it do in the past couple of decades has been to style Atom/RSS feeds. I haven’t personally used it in 25 years. The complexity and attack surface area isn’t justified by its utility, so it’s hard to make the case for keeping it.

bawolff · 32m ago
The wikipedia api has an option where you can add an xslt stylesheet to its output.

When i was young and stupid and learning to program i made an xslt stylesheet to extract dictionary definitions from the api.

It was meant to be combined with a bookmarklet that when you double clicked a word opened it in an iframe.

It was terrible, but i was so proud of it at the time.

It seems like it stopped working at some point, i guess browsers are probably more strict with mime types now. https://en.wiktionary.org/w/api.php?action=parse&format=xml&...

Sorry if this is too off topic, it just triggered some memories

toyg · 1m ago
> It was terrible, but i was so proud of it at the time.

Terrible why? Bookmarklets and XSLT (and things like Greasemonkey userscripts) were some of the things that made the web more "read-write" in the '00s: anyone could remix web content however they saw fit, optimizing it for their personal use-cases, and often attracted kids and "normies" to coding.

Even today, they can be used to do stuff that most people find magical. Unfortunately they are unfashionable, so they're slowly getting strangled by the big players who want to have all the control all the time.

omgtehlion · 52m ago
> so it’s hard to make the case for keeping it.

How about “not breaking stuff” which can not be upgraded? Like old sites/services without active maintainers but still useful. Or hardware appliances that still work, but will not get firmware update ever. Let alone rss feeds, brought up multiple times in the linked thread.

Looks like builtin polyfill (similar to pdfjs in FF) would do. But google seems to be reluctant doing it.

conductr · 44m ago
When’s a reasonable time to pull the plug on out of fashion legacy stuff? Things can’t always remain backwards compatible forever. I think the places this is still in use can build contingencies where required
comex · 19m ago
Why can’t things remain backwards compatible forever? In the 35 years that the Web has existed, browsers have come pretty damn close to meeting that standard. The one huge exception is the removal of plugin support around 2015, and the concomitant death of Flash and Java applets. There were also some major browser-specific APIs that got killed off, like ActiveX and NaCl. But when it comes to standardized, browser-native functionality… very little has ever been removed. I would prefer it if I could say the same thing in another 35 years.
JimDabell · 4m ago
> Why can’t things remain backwards compatible forever?

I already said why:

> The complexity and attack surface area isn’t justified by its utility, so it’s hard to make the case for keeping it.

If you read the GitHub issue that this submission links to, the issue points out security vulnerabilities and links to:

> Although XSLT in web browsers has been a known attack surface for some time, there are still plenty of bugs to be found in it, when viewing it through the lens of modern vulnerability discovery techniques. In this presentation, we will talk about how we found multiple vulnerabilities in XSLT implementations across all major web browsers. We will showcase vulnerabilities that remained undiscovered for 20+ years, difficult to fix bug classes with many variants as well as instances of less well-known bug classes that break memory safety in unexpected ways. We will show a working exploit against at least one web browser using these bugs.

https://www.offensivecon.org/speakers/2025/ivan-fratric.html

3036e4 · 28m ago
Things can remain backwards compatible forever. That is what any good standard does. Web standards and much else in software is sadly a complete mess where too few care about all the downsides of instability.

I am a bit worried because for many years I used plugins like SinglePage to save web pages as HTML. That is not exactly future-safe since every relase of Chromium or Firefox has a list of things that were deprecated (and a list of things that changed, that might or might not break rendering of old pages). Old saved pages will eventually begin to degrade and some might eventually be unreadable without having to mess with virtual machines to run old browsers.

shiomiru · 13m ago
> Things can remain backwards compatible forever.

This is exactly the attitude that has left us with only three complete extant implementations of the web, two of which are controlled by an ad company.

Indeed, to me it seems that at some point, you either have to

a) freeze the standard

b) drop old stuff

c) accept that there is no standard

and with the web as a whole, we are firmly headed towards option c). So I find the short-sightedness of all people pushing back against this proposal unfortunate.

(Also note that dropping a barely-used Turing-complete language from the web is not comparable to removing deprecated HTML elements. The latter typically requires just a few lines of CSS in the UA style sheet, so I doubt anybody is considering doing that.)

pjmlp · 41m ago
Lets remind ourselves that thanks to Google we also did not got WebGL 2.0 Compute, it was too much for Chrome team to spend their resources between WebGL 2.0 Compute and WebGPU.

How great that five years later WebGPU is something we can rely on in portable way. /s

cousin_it · 27m ago
Maybe off topic, but I was really inspired by this article and started thinking about other ways to have "in-browser templating". And then realized that the old function document.write() is actually very convenient for this. Tried to write up the pros and cons here: https://vladimirslepnev.me/write

Amusingly, just like XSLT, document.write is in the process of being deprecated: https://developer.mozilla.org/en-US/docs/Web/API/Document/wr...

bawolff · 39m ago
I always kind of liked XSLT but it clearly has not caught on.
hereonout2 · 23m ago
I used it everyday for the first 5 years of my career, got my first big job off the back of a shorter graduate job that exposed me to it.

It will always have a special heart too.

However, in the way it was used in my roles at least - I found it enforced far too rigid a separation between the data and the presentation.

There were multiple times a backend could not perform some function or transformation of the data, for various and always non technical reasons.

That left it to the xslt developers to figure out a solution, and sometimes due to the limits of the language that involved writing a custom java function / xslt plugin.

Things that were incredibly simple when some sort of scripting language is available in your frontend web app could be incredibly convoluted when all you had was an xslt processor.

account42 · 6m ago
How is the answer to any question "Should we remove X from the web platform?" where X wasn't introduced in the last week an has actual users not a resounding "No, WTF is wrong with you.".
cess11 · 10m ago
I'd consider JS and WASM quite a bit more risky from a security standpoint, which is why everyone should refuse loading and executing those by default.

Securing an XSLT 3.0 implementation would be much easier.

globular-toast · 15m ago
Isn't it a shame that we can only have one program installed on our computers.

Imagine (if you can!) being able to have two programs, one (program A) that supports JS and all that shite, and another (program B) that supports XSLT and all that shite. If you're still with me imagine that program A could just call program B when it detects stuff that it doesn't support and vice versa.

I know, I know, a measly 16 core CPU with 32Gi of memory is not going to be capable of such feats, but one can dream...

ChrisMarshallNY · 26m ago
Obligatory xkcd: https://xkcd.com/1172/