3 ms·
It really should just be compiled to WASM and used with some sort of DOM bridge.
by mmastrac 1y ago
It really should just be compiled to WASM and used with some sort of DOM bridge.
- masklinn 1y agoThe big sticking point is not the JS access, that’s mildly easy to implement. It’s that currently you can open an XML file (including feeds) with an associated stylesheet and the stylesheet gets applied, which can be used to render an HTML document on the client side from an xml source like a feed.
- ioasuncvinvaer 1y agoThe google people provided exactly that. A WASM polyfill.
- youngtaff 1y agoNot 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
- 8NNTt8z3QvLT8tp 1y agoSomeone's already added a PR to allow exactly that. You just include a script tag within your XML file.
- lopsotronic 1y agoI'm sorry to bug you, but can you link up the docs / news / cite for that? Will they need to replace their XSL with some JS/TS/Whatever, or can you just stick a converter so the XSL gets interpreted as something legal? What do they need serverside? I foresee a LOT of this "Panic Replace XSL" work landing right in my lap and if someone's already done the work I want to know about it.