News for hackers. Stuff that matters.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by thunderbong on Tuesday December 31, 2024 @11:09AM (#42559556)
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by Gys on Tuesday December 31, 2024 @11:29AM (#42559713)
Using 'https://news.ycombinator.com/rss' I get 'Error loading stylesheet: An unknown error has occurred (8053000e)'
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Friday January 03, 2025 @11:25PM (#42592394)
Now the Firefox browser can display it properly
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by giantrobot on Tuesday December 31, 2024 @11:54AM (#42559929)
I've been using XSLT on RSS feeds forever now. It's a pretty awesome way to make it browser-accessible now that no browsers want to natively handle feeds. If you want to self-host an XSL for a feed it can be tricky serving the feed with the right Content-Type because some browsers want to throw feeds over to an external app even though they can display it themselves.

My favorite part is styling makes XML serve its original purpose on the web. It's just data serialization that can be interpreted by different user agents in different ways. A feed reader can do feed reader stuff but a web browser can still display a nicely styled human readable output.

XSLT is a really underused technology. It does not have a great developer experience but it's really powerful. It's also built into every web browser released in the past twenty years. Instead of megabytes of JavaScript to download, interpret, and run just to stylize some serialized data an XSL can do it all native in the browser.

Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by PeterStuer on Tuesday December 31, 2024 @01:39PM (#42560762)
Totally breaks some RSS readers that render the page before processing.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by giantrobot on Tuesday December 31, 2024 @07:56PM (#42563078)
An RSS reader should not be paying any attention to a stylesheet. That is not part of the RSS or ATOM schema and is irrelevant to the "feed" portion of the document. If you come across a feed reader applying a stylesheet you should report it as a bug.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Tuesday December 31, 2024 @08:54PM (#42563362)
However, the compatibility differences among various browsers are significant, and the adaptation difficulty is also very high.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by giantrobot on Wednesday January 01, 2025 @05:46PM (#42569940)
WebKit and Gecko based browsers, so basically every device with a screen, supports XSLT 1.0 just fine. Even the old IE Trident engine had good support for XSLT. For styling an RSS feed XSLT 1.0 will do everything you need and that spec has been out for close to 26 years. I don't know what compatibility problems you're expecting.

Typically browser engines that don't support an XML specification version will do the proscribed thing and ignore it. So some old Series 60 WAP browser (were you to find such a thing today) would ignore the XSL stylesheet and display the raw XML or hand it to the registered handler for the content type.

The world went bonkers supporting XML on every computing platform under the Sun for nearly a decade.

Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by deivid on Tuesday December 31, 2024 @12:41PM (#42560313)
Tried to use on mobile firefox, but seems to be doing something very CPU intensive, doesn't respond for ~10s then the tab crashes
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by onli on Tuesday December 31, 2024 @12:55PM (#42560414)
Even kills the app for me. Unresponsive afterwards, even after leaving the page.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Tuesday December 31, 2024 @08:53PM (#42563360)
We sincerely apologize for the inconvenience caused.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by onli on Wednesday January 01, 2025 @03:18AM (#42564696)
:) That's not necessary, but it would be interesting to know what trips Firefox up like that.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by Mayank-Bansal on Thursday January 02, 2025 @09:34AM (#42574745)
Hi, I am part of the Mozilla community. Mozilla devs read through comments and saw an issue with Firefox. They filed https://bugzilla.mozilla.org/show_bug.cgi?id=1939643 to identify why it doesnt work only in Firefox. Turns out other browsers do not follow the spec, and the underlying libraries that the page uses used workarounds to make it work in Chrome, but that broke Firefox. We filed https://github.com/tsparticles/tsparticles/issues/5443 (to fix the workaround in the library), https://issues.chromium.org/issues/387030982 (Chrome bug to get it fixed there) and https://bugzilla.mozilla.org/show_bug.cgi?id=1939701 (which creates a common webtest for all the browser vendors so that this functionality is tested in future and doesnt break).

All of this during the Holiday Season too!

Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by onli on Thursday January 02, 2025 @04:23PM (#42579083)
Indeed, very nice!
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by deivid on Thursday January 09, 2025 @11:53AM (#42647481)
Amazing, thanks!
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Tuesday December 31, 2024 @08:53PM (#42563359)
Thank you for your feedback, I will fix this issue as soon as possible.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ngetchell on Tuesday December 31, 2024 @01:40PM (#42560769)
I haven't been able to open the app. Crashed firefox on mobile and is unresponsive in FF on my mac.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by _-_-__-_-_- on Tuesday December 31, 2024 @04:41PM (#42562068)
Same here,
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Friday January 03, 2025 @11:28PM (#42592409)
Firefox on Mac is now displaying correctly. Please take some time to help test Firefox on mobile devices
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by WorldMaker on Tuesday December 31, 2024 @03:09PM (#42561421)
The use of Tailwind feels rather bloated to me. Seems a big part of why it is 22KB for RSS.xsl. Not that you necessarily need to code golf an XSLT file to be as small as possible, but it just contributes to my disregard for Tailwind itself as a source of bloat as another example from the wild where Tailwind seems verbose and baroque.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by ccbikai on Tuesday December 31, 2024 @08:52PM (#42563354)
Yes. Let me figure out a way to optimize Tailwind and remove unnecessary CSS.
Re:Show HN: RSS.Beauty – Make Your RSS Beautiful by rishikeshs on Wednesday January 01, 2025 @06:41AM (#42565451)
What’s the use of this?