Last modified: 2014-05-06 23:02:10 UTC
I edited https://www.mediawiki.org/w/index.php?title=MediaWiki-Vagrant&oldid=946962 with VisualEditor. Everything after the "Quick Start" section appeared in monospace. I repro'd with the smaller test page https://www.mediawiki.org/wiki/User:S_Page_(WMF)/VE_span_bug I think the issue lies in <p style="font-size: 1.2em; margin-top: 1.2em;">When Vagrant is done configuring your machine, browse to <span class=plainlinks>http://127.0.0.1:8080/</span> to find your MediaWiki instance. The admin password is <code>vagrant<code>.</span> Note its incorrect second opening <code> instead of closing the code, and a second closing </span>. Yet regular wiki parsing can handle it.
(In reply to spage from comment #0) > Note its incorrect second opening <code> instead of closing the code, and a > second closing </span>. Yet regular wiki parsing can handle it. This is Tidy doing the cleanup. PHP parser does not do the fixup automatically. This is a known issue -- we have a bunch of these scenarios now where Parsoid and Tidy fixup broken code differently. We'll never match Tidy behavior (which is not always the desired behavior in any case). But, as for this specific scenario, fixing this will require us to use heuristics in the tokenizer and more complexity. At this time, it is not clear if the additional complexity is worth it, except for easy to auto-fix scenarios.
*** Bug 63798 has been marked as a duplicate of this bug. ***