Page MenuHomePhabricator

HTML diffs of edits for everything
Open, MediumPublic

Description

Eventually we would like to move away from the use of wikitext to preview diffs in Visual Editor. Instead, diffs could be displayed in a WYSIWYG style. Perhaps with color highlighting, perhaps with strikeouts and boldface, perhaps with inserted annotations that look like marks a human editor would use.

Parsoid generates HTML diffs internally. So it would be nice to prototype a HTML diff UI based on Parsoid DOM (HTML5) diffs in Parsoid. If this is successful, it could also be used by Visual Editor (perhaps visual editor would request the diff from Parsoid).


See also: T21859: Remove HTMLDiff

Related Objects

StatusSubtypeAssignedTask
OpenNone
ResolvedTchanders
ResolvedTchanders
ResolvedTchanders
ResolvedTchanders
ResolvedTchanders
ResolvedEsanders
ResolvedTchanders
ResolvedEsanders
ResolvedTchanders
ResolvedJdforrester-WMF
ResolvedTchanders
ResolvedJdforrester-WMF
ResolvedTchanders
ResolvedTchanders
ResolvedJdforrester-WMF
ResolvedEsanders
ResolvedEsanders
ResolvedTchanders
ResolvedJdforrester-WMF
ResolvedEsanders
ResolvedEsanders
ResolvedTchanders
ResolvedEsanders
ResolvedTchanders
ResolvedEsanders
ResolvedNone
ResolvedEsanders
ResolvedEsanders
Resolvedppelberg
ResolvedTchanders
Resolvedmatmarex
OpenNone

Event Timeline

cscott raised the priority of this task from to Medium.
cscott updated the task description. (Show Details)
cscott subscribed.
ssastry renamed this task from Visual Diffs for Parsoid (and Visual Editor) to HTML diffs of edits for Parsoid (and Visual Editor).Jul 8 2015, 6:20 PM
ssastry updated the task description. (Show Details)
ssastry set Security to None.
Jdforrester-WMF renamed this task from HTML diffs of edits for Parsoid (and Visual Editor) to HTML diffs of edits for everything.Jul 18 2015, 6:47 PM

What is the status of this task, now that Wikimania 2015 is over? Did this hacking project take place and was successfully finished? If yes: Please provide an update and potentially summarize findings / provide a link to anything relevant (and if the task is not completely finished yet, please move the project to the "Work continues after Mexico City" column on the #Wikimania-Hackathon-2015 workboard). If no: Please edit this task by removing the #Wikimania-Hackathon-2015 project from this task. Thanks for your help and keeping this task updated!

A message to all open tasks related to the #Wikimania-Hackathon-2015. What do you need to complete this task? Do you need support from the Wikimedia Foundation to push it forward? Help promoting this project? Finding an intern to work on it? Organizing a developer sprint? Pitching it to WMF teams? Applying for a grant? If you need support, share your request at T107423: Evaluate which projects showcased at the Wikimania Hackathon 2015 should be supported further or contact me personally. Thank you!

@cscott Does Parsoid generate HTML string diffs or DOM diffs? We had briefly looked at https://github.com/fiduswriter/diffDOM.

We generate DOM diffs internally for selective serialization, if that is what you are asking about.

Interesting: https://facebook.github.io/react/docs/reconciliation.html, especially the part about stable keys.

https://github.com/nyxtom/reconcile.js is an implementation of this, but doesn't include the stable keys feature and supports stable keys via the 'id' property.

Not a Parsoid project anymore. Untagging. If Parsoid needs to be involved, feel free to retag.