Last modified: 2014-06-18 16:49:28 UTC
Currently <a> tags are being broken by boldface/italics changes. See https://gerrit.wikimedia.org/r/57690 and bug 44476. We should fix that, hopefully fixing cases like ''[[Lunar Prospector]]'''s at the same time (see https://gerrit.wikimedia.org/r/57748 ). See also mediawiki.DOMPostProcessor:minimizeInlineTags, which currently ignores <a> tags. Probably the first task to do is turn this off and see what happens; we think this code isn't doing much right now (see bug 42803).
A DOM-based solution makes sense, but I doubt that the current minimizeInlineTags helps much as it will only re-shuffle inline tags starting at the same text / content offset. This is not sufficient in cases like the example in bug 42803. Fortunately, selective serialization mostly hides this issue for most untouched content as the break-up is deterministic. The visual editor tries to give priority to links, so in new content this should also not be an issue.
Somewhat related, but harder to 'fix': bug 47963
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]
Another test case reported by jackmcbarn: ''<table><tr><td>'''foo'''</td></tr></table>'''