Steps to Reproduce:
- Edit the following sample wikitext with visual editor:
[[File:Zeiss U Boath Periscope 1943.png|thumb|right|Foo Bar Foo]] <gallery> File:Zeiss U Boath Periscope 1943.png|Foo Bar Foo File:Attack periscope.png|Foo Bar Foo </gallery>
- Use the find and replace tool and replace all "Bar" with "Baz".
- Check the diff or switch to wikitext editor.
Actual Results:
- Only the replacement in the image caption was preserved, gallery captions still contain "Bar".
Expected Results:
One of:
- All replacements are preserved.
- Find and replace skips (does not search) galleries (and possibly other embedded elements).
I found T110543 but I am not sure if it has anything to do with this.