Last modified: 2013-02-06 17:17:24 UTC
See https://www.mediawiki.org/w/index.php?title=VisualEditor:LinkTrailReEditBug&diff=594998&oldid=594997&vewhitelist
This is especially broken for the second and third case because stray characters are added.
This is a Parsoid bug. To reproduce: paste <p><a href="Foo" rel="mw:WikiLink">foo</a></p> into http://parsoid.wmflabs.org/_html/ . This should serialize to [[foo]], or maybe [[Foo|foo]], but not [[Foo]].
Current output is [[foo]].
(In reply to comment #3) > Current output is [[foo]]. I assume this was fixed a while ago because you didn't specify a commit. But this bug still exists on mw.org. See https://www.mediawiki.org/w/index.php?title=VisualEditor:LinkTrailReEditBug&diff=637012&oldid=637011 I noticed that it's impossible to select a part of a word, click "Edit link", then trash the link (the whole word is unlinked instead), but it's still possible to select some characters, then click "Clear formatting" to unlink those characters.
It was fixed by a rework of the link serializer I did earlier this month. That code is not yet deployed on mw.org. You can verify that it is fixed in Parsoid by following Roan's instructions in comment 2. You can also do echo '<p><a href="Foo" rel="mw:WikiLink">foo</a></p>' | nodejs parse --html2wt
(In reply to comment #5) > It was fixed by a rework of the link serializer I did earlier this month. > That > code is not yet deployed on mw.org. You can verify that it is fixed in > Parsoid > by following Roan's instructions in comment 2. You can also do > > echo '<p><a href="Foo" rel="mw:WikiLink">foo</a></p>' | nodejs parse > --html2wt OK I'll retest it on Feb 4.
(In reply to comment #6) > (In reply to comment #5) > > It was fixed by a rework of the link serializer I did earlier this month. > > That > > code is not yet deployed on mw.org. You can verify that it is fixed in > > Parsoid > > by following Roan's instructions in comment 2. You can also do > > > > echo '<p><a href="Foo" rel="mw:WikiLink">foo</a></p>' | nodejs parse > > --html2wt > > OK I'll retest it on Feb 4. Bug persists. https://www.mediawiki.org/w/index.php?title=VisualEditor:LinkTrailReEditBug&diff=641685&oldid=641684
mw.org is not running current master- it is still on the December code version. So this is to be expected. http://parsoid.wmflabs.org/ runs the latest code. We need to work out some issues with selective serialization before we can deploy a new version to the mw.org / enwiki backend. You'll see the fix for this bug in production after that deploy.