Last modified: 2011-11-09 23:17:59 UTC
News feed readers and Mozilla Thunderbird e.g. do show a colored revision comparison for Atom/RSS feeds. But sometimes changed words/content is not shown red, see 1. http://de.wikibooks.org/w/index.php?title=Esperanto&diff=374797&oldid=364671 (where it's red) 2. http://de.wikibooks.org/w/index.php?title=Esperanto&feed=rss&action=history (where no red color is used) 3. http://de.wikibooks.org/w/index.php?title=Linux-Kompendium&feed=rss&action=history (where style code is marking words red) So, sometimes style="color: red; font-weight: bold; text-decoration: none;" is missing; instead class="diffchange diffchange-inline" is used, but does not work (at least for Thunderbird). This occurs for RSS and Atom.
The styles are applied by hardcoding to the feed output by rcApplyDiffStyle() in SpecialRecentchanges.php. This function is a bit of a hack, and doesn't properly handle multiple classes (eg class="diffchange diffchange-inline"), which are now produced due to recent changes to the diff engine. (But not _always_ produced on Wikipedia, since we currently have a mix of wikidiff2 versions installed.) The function should be updated to handle multiple classes, either with another hack or by rewriting it to use proper DOM functions or such.