Page MenuHomePhabricator

Parsoid: Handle duplicate main content with `details`
Closed, ResolvedPublic

Description

User story:

As VE user I want to be able to correctly see and save sub-refs if the main content is duplicate among sub-refs.

Acceptance criteria:
<ref name="abc" details="p. 123">ghi</ref>
<ref name="abc" details="p. 456">ghi</ref>
  • Shows two sub refs [1.1] and [1.2].
  • Sub-refs can be edited individually in VE.
  • When changing details in VE they update on save in Wikitext. The main body stays the same,
Out of scope:
  • Unnamed main ref
  • Editing the main content. This is broken behavior in VE already when duplicate main content is used with the same name.

Event Timeline

awight renamed this task from Parsoid handles edge case where the subref main ref is named but the body is duplicated to Parsoid correctly handles multiple, named main+subref tags.Mar 3 2025, 7:52 AM
awight updated the task description. (Show Details)
awight changed the subtype of this task from "Spike" to "Task".Mar 3 2025, 10:38 AM
WMDE-Fisch renamed this task from Parsoid correctly handles multiple, named main+subref tags to Parsoid: Handle variations on how the main content can appear with `details`.Mar 17 2025, 5:21 PM
WMDE-Fisch updated the task description. (Show Details)
WMDE-Fisch renamed this task from Parsoid: Handle variations on how the main content can appear with `details` to Parsoid: Handle duplicate main content with `details`.Apr 9 2025, 8:15 PM
WMDE-Fisch updated the task description. (Show Details)
WMDE-Fisch moved this task from Done to Demo on the WMDE-TechWish-Sprint-2025-04-02 board.