Steps to understand:
- Edit an existing article, and change the contents of a <ref>.
- Before saving, check the visual diff. See:
- The ref number (the little blue clicky number) is highlighted.
- The new text displayed.
- The old text has vanished without a trace.
- Save/Publish your change.
- After saving, go to the history page and check the visual diff. See:
- The old text is displayed in red strikethrough.
- The new text is displayed in green (i.e., for insertion).
Expected:
It's the same edit. These diffs should match.
Reported by @AxelBoldt at https://www.mediawiki.org/wiki/Topic:Vpu1ggxm9pfkwbrj
Test instructions:
- Enable "New wikitext mode" beta feature
- Click on https://en.wikipedia.org/w/index.php?title=Alice_Dreger&veaction=editsource§ion=2
- Open this revision of article using NWE.
- In the second paragraph, you'll see a <ref name="MSU"> containing a cite-web template. Change the template's title parameter from "Teacher-Scholar" to "TeacherXXXScholar".
- Now click on "Publish changes", then "Review your changes".
- Go to the Visual Diff section.
Observed Result:
It looks like this:
- Unchanged references are marked as modified
- The text of the changed reference is not marked
- Something is wrong with the styles (the line breaks after each "↑" are unexpected)
Expected Result:
It should look like this:







