NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Chrome and Edge are removing XSLT: what breaks and what does not (doctor-seo.net)
Trustable8 16 minutes ago [-]
Shame back in the XHTML days XSLT was a spec that could have made website modularity so much cleaner. I once created an early website creation tool that merged separate components using XSLT it was really powerful in the days before javascript was usable without jQuery. However XHTML was dropped in favor of HTML5 and XSLT was pretty much useless after that. Its done well to survive this long I presume it was mainly kept to style XML files.
wahern 32 seconds ago [-]
HTML5 could have taken the extra step of defining a canonical XML or XML-compatible DOM encoding, or at least encouraged it. But the anti-XML sentiment was explicit and spiteful. Still, popular XSLT processors are built to consume and even produce HTML5, I'm just not sure how thorough those capabilities are or whether they're based on any formal or informal standards.

I lost any enthusiasm for XML after my experience with WDDX and XML-RPC, but as a foundation for HTML it was the best thing going. And maybe still is, given the absence of cross-toolchain contenders? Ditto for XSLT, at least if disregarding the choice to make the syntax homoiconic.

g-b-r 7 minutes ago [-]
The XSLT 1.0 spec specifically was written pretty badly, though, to my recollection; I had a hard time at making sense of it
cousin_it 8 minutes ago [-]
When I first learned that XSLT was going away, I got curious how to achieve the same thing in JS (client-side templating that happens during page load, without any "flash of content"). It turns out there's a very nice way to do it, by using inline scripts that append elements next to document.currentScript. Lean Rada wrote about it here: https://leanrada.com/notes/inline-rendering-currentscript/ and I wrote about it as well: https://vladimirslepnev.me/write
Devasta 12 minutes ago [-]
It is wild to look back at XHTML and see that the W3C were entirely correct about XML. They envisaged a world of schemas, client side templating, custom elements, dynamic forms, the works.

Alas, for laughably bad reasons we had to scrap all that for HTML5, Javascript and CSS; a stack so awful that most devs doing anything on the frontend immediately scramble to React, TypeScript, Tailwind, whatever it takes to avoid the underlying garbage.

A horrid state of affairs that will only get worse as time goes on.

r_lee 8 minutes ago [-]
yet people will say that HTML5 is all you need or something
krylonmae 4 minutes ago [-]
Looks like the site broke
pjmlp 22 minutes ago [-]
Edge is Chrome.
troupo 28 minutes ago [-]
There's a long discussion about XSLT removal here: https://github.com/whatwg/html/issues/11578#issuecomment-595... (the link is to the comment with this proposal https://github.com/doriantaylor/swet which already is much better than any templating proposal "the platform" is trying to push)
g-b-r 23 minutes ago [-]
tossit444 29 minutes ago [-]
503
Insimwytim 21 minutes ago [-]
So, this site breaks, we know that much
Barbing 19 minutes ago [-]
doctor-seo dot net has failed us. What is this world coming to?
24 minutes ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:06:34 GMT+0000 (Coordinated Universal Time) with Vercel.