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
- ^ First footnote
- ^ A footnote for the image
In VisualEditor, you get this:
Section
Hello world.[1]Gallery
An image[1]
- ^ A footnote for the image
References
- ^ 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.