References may disappear in DiscussionTools when switching from visual to wikitext (or saving).
I noticed this when testing the patches for T256292 (so this is only reproducible on Beta right now).
Steps to reproduce:
- Type in a comment with a reference in source mode, e.g. a <ref>b</ref> c
- Switch to visual, auto-generated reflist appears
- Delete the reflist
- Switch to wikitext (or save), the reference disappears
I think deleting the reflist is a reasonable thing to do; when posting a comment with references, you would usually want the reflist at the bottom of the page (or the section), and definitely not before your signature (which is where it will appear if it's inside the comment you type).