Context
We want to move away from synthetic LDRs. So instead on depending on (main) ve.dm.MWReferenceNode to be part of the document we want to retrieve content and ve.dm.InternalItemNode directly from the InternalList.
When converting back to Wikitext we need to make sure that ve.dm.MWReferenceNode.toDomElements and ve.dm.MWReferencesListNode.toDomElements make sure that the content is converted so that Parsoid can parse it correctly.
Task
- Look into ve.dm.MWReferenceNode.toDomElements and figure out where synthetic LDR's are used and get rid of that dependency
- Look into ve.dm.MWReferenceNode.toDomElements and make sure content is retrieved correctly where needed ( might be not needed here )
- Look into ve.dm.MWReferencesListNode.toDomElements and figure out where synthetic LDR's are used and get rid of that dependency
- Look into ve.dm.MWReferencesListNode.toDomElements and make sure content is retrieved correctly to render the updated references list
Notes
- ve.dm.MWReferencesListNode.toDomElements renders the reflist similar to whats happening in T415525: [Refactor] Show main content in the ReferencesList of a sub-ref node without relying on a main node