Last modified: 2013-06-05 21:19:42 UTC
I edited https://en.wikipedia.org/w/index.php?title=Eagle_Lake_%28Florida%29&oldid=557775556 which contained a piped link: [[Eagle Lake, Florida|Eagle Lake]] I used VisualEditor to change the anchor text to Eagle Lake, Florida. That means piping is no longer necessary. However, on the review changes screen, it showed: '''Eagle Lake''' is an elongated lake in shape located in the northern portion of [[Eagle Lake, Florida|Eagle Lake, Florida]]. (irrelevant parts after omitted). It should just be: [[Eagle Lake, Florida]]
Bug in LinkHandler in the serializer. Our html2wt tests are lacking. [subbu@earth lib] cat /tmp/x <a rel='mw:WikiLink' href='./Foo' data-parsoid='{"a":{"href":"./Foo"},"sa":{"href":"Foo"},"stx":"simple"}'>Foo</a> <a rel="mw:WikiLink" href="./Foo" data-parsoid='{"a":{"href":"./Foo"},"sa":{"href":"Foo"},"stx":"piped"}'>Foo</a> [subbu@earth lib] node parse --html2wt < /tmp/x [[Foo]] [[Foo|Foo]]
Never mind ... bad test case. This behavior is correct since the second html snippet corresponds to parse output of "[[Foo|Foo]]" as wikitext input. The problem seems to be that the serializer doesn't exploit the information that the link target has been modified and that there is a diff-marker on the a-tag.
Related URL: https://gerrit.wikimedia.org/r/66880 (Gerrit Change I6abef05522192f667d483b4eb4e05de771496c28)
https://gerrit.wikimedia.org/r/66880 (Gerrit Change I6abef05522192f667d483b4eb4e05de771496c28) | change APPROVED and MERGED [by jenkins-bot]
Please note that this will be fixed on en-wp only after the latest version of parsoid is deployed.