Last modified: 2013-10-30 13:44:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53145, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51145 - VisualEditor: {{referências}} injects additional HTML (<div><references /></div>) into wikitext
VisualEditor: {{referências}} injects additional HTML (<div><references /></d...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks: ve-nonenglish
  Show dependency treegraph
 
Reported: 2013-07-10 23:39 UTC by Helder
Modified: 2013-10-30 13:44 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-07-10 23:39:58 UTC
1. Go to
https://pt.wikipedia.org/wiki/Associação_Médico-Espírita_do_Brasil?oldid=36199569&veaction=edit
2. Click in the box in the top of the page and delete it
3. Click on "Save page" and then "Review your changes"
The editor will add the code
<div class="reflist references-small" style><references /></div>
in the bottom of the page, as in this diff:
https://pt.wikipedia.org/wiki/Associação_Médico-Espírita_do_Brasil?diff=36364362&uselang=en
Comment 1 Helder 2013-07-10 23:57:12 UTC
I don't know if this is relevant, but the same code "{{referências}}" expands to something different on [[pt:special:ExpandTemplates]]:

<h2 style="cursor:help" title="Esta seção não é editável por razões técnicas. Edite a página toda em vez disso.">Referências</h2>
<div class="reflist references-small" style=""><references group=""></references></div>


Direct link:
https://pt.wikipedia.org/w/index.php?title=Especial:Expandir_predefini%C3%A7%C3%B5es&input=%7B%7Brefer%C3%AAncias%7D%7D&contexttitle=Associa%C3%A7%C3%A3o+M%C3%A9dico-Esp%C3%ADrita+do+Brasil&removecomments=true&removenowiki=true
Comment 2 Roan Kattouw 2013-07-12 19:41:36 UTC
(In reply to comment #1)
> I don't know if this is relevant, but the same code "{{referências}}" expands
> to something different on [[pt:special:ExpandTemplates]]:
> 
> <h2 style="cursor:help" title="Esta seção não é editável por razões técnicas.
> Edite a página toda em vez disso.">Referências</h2>
> <div class="reflist references-small" style=""><references
> group=""></references></div>
> 
> 
> Direct link:
> https://pt.wikipedia.org/w/index.php?title=Especial:
> Expandir_predefini%C3%A7%C3%B5es&input=%7B%7Brefer%C3%AAncias%7D%7D&contextti
> tle=Associa%C3%A7%C3%A3o+M%C3%A9dico-
> Esp%C3%ADrita+do+Brasil&removecomments=true&removenowiki=true

That's pretty much the same as the expansion that leaks into the article, except for the first tag (the <h2>).
Comment 3 John Mark Vandenberg 2013-07-14 00:15:27 UTC
This little devil can be reproduced at
https://pt.wikipedia.org/wiki/User:John_Vandenberg/demo?veaction=edit
(remove the template at the top and click save)

It is a very common case, and VE cant be used safely on pt.wp until this is fixed.

Im guessing this is related to the high priority Cite enhancement bug 51260.
Comment 4 Helder 2013-07-17 18:16:48 UTC
This happened again:
https://pt.wikipedia.org/wiki/Haroldo_Palo_Jr.?diff=36430552
Comment 5 John Mark Vandenberg 2013-10-30 11:44:36 UTC
I can't reproduce this now using a simple test case.  Has it still been happening on pt.wp?
Comment 6 Helder 2013-10-30 13:44:52 UTC
I was NOT able to reproduce it following the steps from comment 0 and of comment 3, and also in the case of comment 4. Moreover, I don't remember seeing any new reports on this, so I'm marking this as FIXED (but I don't know which code change fixed the bug).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links