uh… I guess I knew y’all were going to remove XSLT but is a user-level error for it really the tact you want to take here? 🥵

Zach Leatherman 4040 replies 3434 likes44 reposts11 quote Original on BlueskyOriginal on MastodonAlso posted to Mastodon.
40 replies
@zachleat How many ports could one man need
-
…oh no
@zachleat I have a certain amount of sympathy with the browser team here because… there’s nobody else you can show the error to. A way to have a failing web page email its creator would be fabulous for this but it doesn’t exist. I think what chrome are doing here is bad, I agree. I’m not sure what else they can do. Maybe they should do nothing: that’s about it.
https://www.kryogenix.org/days/2023/01/02/what-to-do-about-hotlinking/ is this same problem from a different angle and I didn’t know what to do about it there either.
@sil hmm… I guess I had expected that they would just inject the XSLT JS polyfill clientside. Not ideal but better than this.
@zachleat but that’s not “drop support for xslt”, which is clearly their goal here. That’s “keep supporting it when you don’t wanna” :)
@sil oh, they maintained the polyfill? Let me maintain the polyfill, then! 🫣
@zachleat no no, if they inject a polyfill then... that's them supporting xsl, right? and they want to not support it. (I don't think there's a meaningful difference between "we support XSL in browser" and "we automatically inject JS which supports XSL". In particular, if you file a bug about it, getting told "we won't fix that because we don't actually support it, technically it's JS that's auto-injected by us but it's not actually us, so no fixes for you" is for the birds as an answer)
@sil i’m confused what the goal is here 😅
@zachleat maybe I'm being dim today? I think:
1. chrome want to stop supporting xsl entirely, so XML pages will just display as XML and won't be transformed
2. they don't have a way to tell people who publish such pages to prep for this, so they put a notice up for the users of those pages instead
3. we are all sad about how a web user, the one person guaranteed to not be able to help with it, gets given an error message they can't resolvebut we're unsure whether "no error message" is worse?
@robinwhittleton @zachleat oh! maybe this is totally my misunderstanding and it's been added by that webpage itself? if it's not being put there by the browser then I have completely misunderstood and you should ignore everything I've said while I go and sit on the step for stupid boys.
If the website themselves are putting a big red user-facing error on a page they own rather than *fixing* it then yeah totally I entirely understand why Zach's questioning it! why would you do that? that's crap!@sil @robinwhittleton I have full control of that code so I didn’t add the error! I suppose I may have missed something there but my read was that it is a browser level error message
@zachleat I haven’t checked recently but at some point Chrome was showing both that error and a warning for missing style sheets.
@peterwilsoncc ugh.
filed a few followups to this, for interested folks:
https://github.com/11ty/eleventy-base-blog/issues/264
https://github.com/11ty/plugin-rss/issues/106@zachleat Damn! Just looked at my XSLT-styled RSS feed and got that whack-job warning.
@bobmonsour I did push a workaround at that issue (but it’s client JS 🥹)
@zachleat Works like a charm!
@zachleat And, of course, this…
@zachleat Confession…I used Claude to extract my former XSL styles and changed the pretty-atom-feed.js to refer to a css file that reflects that earlier look. I’m seeing a FOUC, but the result looks like it used to without the Chrome shenanigans.
Minimized the FOUC by inlining the CSS with the pretty-atom-feed.js file rather than loading it separately.
filed a few followups to this, for interested folks:
-
@conr I want the browser to do it 🫣
@zachleat That looks so awful, too.
@mwichary Yeah. Scary and verbose, fine—but make it well designed!
@zachleat And if the site owner creates a polyfill that only loads if the XSLT instructions aren't processed by the browser... how the heck do they tell the browser not to show that warning?
I guess your JS also has to remove the xml-stylesheet processing instruction?
@AmeliaBR oh.
oh no. I’d be surprised if that worked
@zachleat Either way, it's not much help for the use case of styling an RSS xml feed to be user-friendly if viewed in a browser. I don't know how you'd load a JS polyfill for that!
@iamdavidobrien @AmeliaBR I *loved* XSLT in the IE days, it was so much faster than DOM — lots of fun perf hacks
@AmeliaBR oh: just in case our conversation wires are crossed here https://demo-base-blog.11ty.dev/feed/feed.xml has a working example of that! (not a polyfill though)
and https://github.com/benmillett/11tyTweaks/tree/main/feed has a script for it too!
@zachleat Oh, good to know that works! (HTML script element in an RSS feed)
But yeah, then it's definitely a problem if Chrome's sticking user-facing errors on something that was designed for graceful degradation.
@zachleat <del>don't</del> <ins>loudly</ins> break the Web
@zachleat from the folks who tried to convince the world that AMP was the future, and who are hell-bent on putting "agentic" webMCP bullshit everywhere
@patrick_h_lauke @zachleat This part right here
@zachleat why are they deprecating something that has been around since 1999 instead of supporting an open source project and @zachleat, why are they deprecating something that has been around since 1999 instead of supporting an open-source project and spec with so many wonderful uses? I mean, they have the money. I know the answer, but it still makes me sad to see the corporate web killing features that are open source, useful, and important, and that break backward compatibility. spec that has so many wonderful uses? I mean, they have the money. I know the answer, but it still makes me sad to see the corporate web killing features that are open source, useful, important, and break backward compatibility.