Context
Currently the content of a main+details node comes back together using two paths
- The content of the details via the sub-ref's ve.dm.MWReferenceNode using the body html attribute when converting to a DOM for Parsoid
- The content of the ( synth ) main node via the ve.dm.MWReferencesListNode as part of the reference list DOM for Parsoid
Both parts are connected back using the refListItemId stored in the mainBody attribute of the node and in the DOM of the list.
Work
The mechanism is already "independent" from synth refs as long as the references list can be generated with the correct content and id are used that match.
- Make sure main content is added to the output and can be found using an id that connects main+details reference nodes even if there's no distinct main node
Review
Do the following to prove that the change works:
- open page with the following wikitext
<ref name=":0" details="details">Main</ref> <references />
- change "Main"
- save page / view diff
Before: no change was visible
After: the change is visible

