December 31, 2003
@ 04:41 PM

Joi Ito recently added a link to a CSS style information to the content in his RSS feed. This broke a number of news aggregators because his stylesheet clashed with whatever styles were being used by various client aggregators. As Sam Ruby points out RSS Bandit strips out such tags completely so we don't have this problem.

We started stripping certain [X]HTML tags for security reasons after I read Mark Pilgrim's article on "How To Consume RSS Safely". Since then I've recanted on striping certain tags now that we use the browser's security settings to decide whether to load ActiveX controls, execute Javascript or even load external images. However I still plan to strip style tags because RSS Bandit's XSLT themes would render quite hideously if we loaded CSS stylesheets defined in the feed in combination with them. Just imagine what would happen if I combined the style definitions in random feeds with RSS Bandit's Outlook 2003 theme, Halloween theme, or Unwise Terminal theme. Ugh.



Thursday, January 1, 2004 1:34:34 AM (GMT Standard Time, UTC+00:00)
I agree with your approach. However, you should ensure that you have a good stylesheet. It seems that there is no entry in the CSS from RSSBandit for table cells. They render in a font much larger (and less attractive) than the stories.

I was wondering why the style information that I put in my feed was not being rendered by RSSBandit, now I know.
Wednesday, January 7, 2004 7:41:11 PM (GMT Standard Time, UTC+00:00)
CSS should absolutely not be permitted in RSS, in my humble opinion. The entire point of RSS is to syndicate content. If I want to look at the formatting, I'm more than happy to click over to the HTML representation (aka. the web site) if I want to see posts nicely formatted.
Comments are closed.