Last modified: 2014-11-01 16:11:45 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 T74865, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72865 - VisualEditor: References inside galleries being displayed separately, inside the gallery, instead of in the correct <references /> block at the end of the page
VisualEditor: References inside galleries being displayed separately, inside...
Status: NEW
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks: 43037
  Show dependency treegraph
 
Reported: 2014-11-01 16:10 UTC by WhatamIdoing
Modified: 2014-11-01 16:11 UTC (History)
6 users (show)

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


Attachments
What the gallery looks like in VisualEditor (21.50 KB, image/png)
2014-11-01 16:10 UTC, WhatamIdoing
Details

Description WhatamIdoing 2014-11-01 16:10:38 UTC
Created attachment 16993 [details]
What the gallery looks like in VisualEditor

Open a page containing some refs, and then a gallery that contains <ref> tags but no <references /> block inside the gallery.  (The references block can be elsewhere on the page.)  For example:

==Section==
Hello world.<ref>First footnote</ref>

==Gallery==
<gallery>
File:Example.jpg|An image<ref>A footnote for the image</ref>
</gallery>

==References==
<references />



In read mode, everything looks right:

Section
Hello world.[1]

Gallery
An image[2]

References
1. ^ First footnote
2. ^ A footnote for the image



In VisualEditor, you get this:

Section
Hello world.[1]

Gallery
An image[1]
1. ^ A footnote for the image

References
1. ^ First footnote


VisualEditor seems to be inserting a ref block into the gallery, even though none exists at that point on the page.  Also, it restarts the numbers for the gallery.

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


Navigation
Links