Page MenuHomePhabricator

History feed discards some classes from diff elements
Open, MediumPublic

Description

History feed discards some classes from diff elements.

For instance .diff-addedline & .diff-deletedline classes are missing from <td> elements in Atom feed.

1:1 HTML of diff should be provided in feed.

Related Objects

Event Timeline

Danny_B raised the priority of this task from to Medium.
Danny_B updated the task description. (Show Details)
Danny_B added a project: MediaWiki-Page-diffs.
Danny_B subscribed.

http://git.wikimedia.org/blob/mediawiki%2Fcore.git/master/includes%2FFeedUtils.php#L241

At least don't remove those relevant classes, but simply add the style attribute.

Eg. Sage strips all inline styles, but allows custom CSS, so in this situation it's impossible to render the diffs in the feed properly.