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>
> Gallery
> An image[2]
1. ^ First footnote>
> References
2> 1. ^ First footnote
> 2. ^ A footnote for the image
In VisualEditor, you get this:
> Section
> Hello world.[1]
Gallery
An image[1]>
> Gallery
1. ^ A footnote for the> An image
Referencese[1]
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,> 1. it restarts the numbers^ A footnote for the gallery.
--------------------------image
**Version**: unspecified>
>References
**Severity**: normal> 1. ^ First footnote
**Attached**: {F15268}{F15268}
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.