Last modified: 2014-02-06 01:18:41 UTC
See https://it.wikipedia.org/w/index.php?title=Utente%3AElitre_%28WMF%29%2FSandbox_VE3&diff=63988076&oldid=63988055 , or https://it.wikipedia.org/w/index.php?title=Oreste_Tommasini&diff=63836558&oldid=61161898, or https://it.wikipedia.org/w/index.php?title=Frederic_William_Maitland&diff=63692381&oldid=59785358 . Reproduced with Chrome, FF, Opera (unlogged), tested with both skins. You only need to add the Template:Interprogetto to an existing page or a new one. Useless code like <span data-ve-ignore="true" about="g0.8632714317645878"></span> is added. James, bug 59653, IMHO, had a similar problem.
There was a related issue beforehand – but this isn't getting copied, so I can't work out out data-ve-ignore is getting added to the HTML?
This extra HTML is correctly added here for the sake of putting something meaningful into the external clipboard. data-ve-ignore tells the converter to ignore it if it's pasted into another VE instances, and about="g[random]" tells Parsoid to ignore it. However the about grouping appears not to be working at Parsoids end: HTML: <p><span about="g1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"href":"Template:Interprogetto","wt":"Interprogetto"},"params":{"commons":{"wt":"cats"}}}}]}" data-ve-no-generated-contents="true"></span><span data-ve-ignore="true" about="g1"></span><ul data-ve-ignore="true" about="g1"> <li>Foo</li> </ul> <span data-ve-ignore="true" about="g1"> </span></p> Wikitext: {{Interprogetto|commons = cats}} * Foo <span data-ve-ignore="true" about="g1"></span> The first about-grouped sibling is discarded, but the subsequent ul and span are not.
So this is caused by new templates always being inline templates, as we don't know if they are block templates until they render. As a result the above HTML is invalid (<ul> inside a <p>) which after Parsoid fixes, means the about-grouped items are no longer siblings.
This is scenario #3 from https://www.mediawiki.org/wiki/Parsoid/DOM_notes#Efficient_re-rendering_on_edits
Is Bug 60375 related?
Moving it back to VE.
(In reply to comment #5) > Is Bug 60375 related? Looks like it.
Change 111518 had a related patch set uploaded by Esanders: Only generate transclusion contents for clipboard https://gerrit.wikimedia.org/r/111518
Change 111518 merged by jenkins-bot: Only generate transclusion contents for clipboard https://gerrit.wikimedia.org/r/111518