Last modified: 2014-01-18 05:45:23 UTC
VisualEditor deliberately drops <span typeof="mw:Nowiki"> annotations on changed content to prevent originally-necessary <nowiki> blocks interfering with editing. This means that HTML editors don't need to know or care about <nowiki>s, and they are just magically sorted out in the back-end so the resultant wikitext is the most like what a human would create. However, <nowiki />s come out as a <meta typeof="mw:Placeholder">, which VisualEditor doesn't show to users but also won't ever remove, leading to potential issues where a no-longer-needed <nowiki /> sits in the wikitext, disruptively confusing to wikitext editors. If Parsoid instead represented it as <span typeof="mw:Nowiki"></span> or similar, VisualEditor could do the same (well, a bit more work) and so drop it when the context has been edited, letting Parsoid re-generate it if needed.
If we want to perform clean-up like this, then we should perhaps implement that in Parsoid rather than VE so that other users benefit from it as well.
(In reply to comment #1) > If we want to perform clean-up like this, then we should perhaps implement > that in Parsoid rather than VE so that other users benefit from it as well. Happy for it to be done in Parsoid instead, and for us to remove the dropping from VE.
*** Bug 59829 has been marked as a duplicate of this bug. ***
*** Bug 53659 has been marked as a duplicate of this bug. ***
*** Bug 59650 has been marked as a duplicate of this bug. ***