Topic on VisualEditor/Feedback

HTML output from template leaked into wikitext

4
TMg (talkcontribs)

Is this a known bug?

<ref>{{Internetquelle|...}}<span style="display: none;" class="Z3988" title="..." data-ve-ignore="true"> </span></ref>

Short explanation: The German template de:Vorlage:Internetquelle outputs a w:COinS record. This is basically an empty <span> element with a long title attribute. For some reason this <span> element made it into the wikitext.

Expected wikitext:

<ref>{{Internetquelle|...}}</ref>

Unfortunately I can't tell you how to reproduce this since it was reported by an other user, see de:Wikipedia:Fragen zur Wikipedia#VisualEditor.

Elitre (WMF) (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

I've seen several of these recently. The mess gets cleaned up if you edit anything on that page in VisualEditor again. (You'll get a warning about a potentially corrupted edit, but it's actually un-corrupting the page.) The cleanups, but not the original problems, are listed in RecentChanges under "visualeditor-needcheck".

I haven't been able to find a common theme. It happens on multiple templates, multiple browsers, Macs, PCs, and Linux.

TMg (talkcontribs)

It seems it happens when you copy and paste the template in VE. Maybe something in the paste code makes VE think the empty element does not belong to the template.

I checked the German template and there is nothing wrong with the nesting:

<span class="cite">...</span><span style="display: none;" class="Z3988" title="...">&nbsp;</span>
Reply to "HTML output from template leaked into wikitext"