Parsoid/VisualEditor debugging

From MediaWiki.org
Jump to navigation Jump to search

Ideally we'd have a way to get issue reports from users with the following information:

  • page name ('title' property) and oldid
  • (maybe) VE input DOM
  • VE output DOM
  • wikitext diff
  • user message describing what they did, what they expected and how the output differs
  • timestamp (so we can work out which version of Parsoid, VE are involved)
  • VE change markings (so we know what areas are meant to have changed)

We now provide a http://parsoid.wmflabs.org/_bugs/ POST target that expects a 'data' parameter containing JSON with at least a 'title' property:

{
  "title": "The page",
  "oldid": 12345,
  "message": "the user-supplied message",
  "diff": "the wikitext diff",
  "veInDOM": "the input HTML DOM",
  "veOutDOM": "the output HTML DOM"
}
Clearance wording
I understand that by clicking submit I will transmit my changes and my feedback which will be stored for analysis. I agree to provide feedback in accordance with the Terms of Use.


Getting the current output DOM from the editor[edit]

In the meantime, the following might be useful:

ve.dm.converter.getDomFromData(ve.instances[0].documentModel.data);