News for hackers. Stuff that matters.
Re:Chrome intends to remove XSLT from the HTML spec by codedokode on Tuesday August 19, 2025 @12:49PM (#44953578)
> Sort of. JS is much slower than the native XSLT transform, and the XSLT result is cacheable. That's huge.

Nobody is going to process million of DOM nodes with XSLT because the browser won't be able to display them anyway. And one can write a WASM implementation.

Re:Chrome intends to remove XSLT from the HTML spec by geocar on Tuesday August 19, 2025 @02:23PM (#44954618)
I think you're confusing throughput with latency.

You're right nobody processes a million DOM nodes with XSLT in a browser, but you're wrong about everything else: WASM has a huge startup cost.

Consider applying stylesheet properties: XSLT knows exactly how to lay things out so it can put all of the stylesheet properties directly on the element. Pre-rendered HTML would be huge. CSS is slow. XSLT gets you direct-attach, small-payload, and low-latency display.

Re:Chrome intends to remove XSLT from the HTML spec by codedokode on Tuesday August 19, 2025 @04:27PM (#44955945)
That's even a rarer case, embedding CSS rules into XSLT template (if I understood you correctly), I never heard of it. I know that CSS is sometimes embedded into HTML though.